Skip to content

Commit

Permalink
Show hover cards when issue numbers are followed by , or ., fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 authored and RMacfarlane committed Sep 8, 2020
1 parent 7b29a21 commit 7f3be8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/issues/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import { getRepositoryForFile } from '../github/utils';
import { GitApiImpl } from '../api/api1';
import { Repository, Commit, Remote, Ref } from '../api/api';

export const ISSUE_EXPRESSION = /(([^\s]+)\/([^\s]+))?(#|GH-)([1-9][0-9]*)($|[\s\:\;\-\(\=\)])/;
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]*)($|[\s\:\;\-\(\=\)])/;
export const ISSUE_EXPRESSION = /(([^\s]+)\/([^\s]+))?(#|GH-)([1-9][0-9]*)($|\b)/;
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)/;

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

Expand Down

0 comments on commit 7f3be8c

Please sign in to comment.