Skip to content

Commit

Permalink
fix jira ticket regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Jun 22, 2021
1 parent d86a83d commit 9eb75bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/tickets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export const getTicketFromClipboard = (): string =>
parseTicket(clipboard.readText('clipboard'));

export const parseTicket = (text: string): string =>
text.match(/[A-Z]+-\d+/)?.[0] || '';
text.match(/[A-Z0-9][A-Z0-9]*-\d+/)?.[0] || '';

0 comments on commit 9eb75bb

Please sign in to comment.