Skip to content

Commit 49489d6

Browse files
authored
Issue Hover Card fails for external repository issue reference surrounded by parentheses (#3285)
Fixes #3268
1 parent 5ffe9e3 commit 49489d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/issues/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import { ReviewManager } from '../view/reviewManager';
2020
import { CODE_PERMALINK, findCodeLinkLocally } from './issueLinkLookup';
2121
import { StateManager } from './stateManager';
2222

23-
export const ISSUE_EXPRESSION = /(([^\s]+)\/([^\s]+))?(#|GH-)([1-9][0-9]*)($|\b)/;
24-
export const ISSUE_OR_URL_EXPRESSION = /(https?:\/\/github\.com\/(([^\s]+)\/([^\s]+))\/([^\s]+\/)?(issues|pull)\/([0-9]+)(#issuecomment\-([0-9]+))?)|(([^\s]+)\/([^\s]+))?(#|GH-)([1-9][0-9]*)($|\b)/;
23+
export const ISSUE_EXPRESSION = /(([A-Za-z0-9_.\-]+)\/([A-Za-z0-9_.\-]+))?(#|GH-)([1-9][0-9]*)($|\b)/;
24+
export const ISSUE_OR_URL_EXPRESSION = /(https?:\/\/github\.com\/(([^\s]+)\/([^\s]+))\/([^\s]+\/)?(issues|pull)\/([0-9]+)(#issuecomment\-([0-9]+))?)|(([A-Za-z0-9_.\-]+)\/([A-Za-z0-9_.\-]+))?(#|GH-)([1-9][0-9]*)($|\b)/;
2525

2626
export const USER_EXPRESSION: RegExp = /\@([^\s]+)/;
2727

0 commit comments

Comments
 (0)