@ -2,8 +2,8 @@
import { Range } from 'vscode' ;
import { RemoteProvider } from './provider' ;
const issueEnricherRegE x = /(^|\s)((?:#|gh-)([0-9]+))\b/gi ;
const issueEnricher3rdParyRegE x = /\b((\w+-?\w+(?!-)\/\w+-?\w+(?!-))#([0-9]+))\b/g ;
const issueEnricherRege x = /(^|\s)((?:#|gh-)([0-9]+))\b/gi ;
const issueEnricher3rdParyRege x = /\b((\w+-?\w+(?!-)\/\w+-?\w+(?!-))#([0-9]+))\b/g ;
export class GitHubRemote extends RemoteProvider {
constructor ( domain : string , path : string , protocol? : string , name? : string , custom : boolean = false ) {
@ -22,10 +22,10 @@ export class GitHubRemote extends RemoteProvider {
return (
message
// Matches #123 or gh-123 or GH-123
. replace ( issueEnricherRegE x , ` $ 1[ $ 2]( ${ this . baseUrl } /issues/ $ 3 "Open Issue $ 2") ` )
. replace ( issueEnricherRege x , ` $ 1[ $ 2]( ${ this . baseUrl } /issues/ $ 3 "Open Issue $ 2") ` )
// Matches eamodio/vscode-gitlens#123
. replace (
issueEnricher3rdParyRegE x ,
issueEnricher3rdParyRege x ,
` [ $ 1]( ${ this . protocol } :// ${ this . domain } / $ 2/issues/ $ 3 "Open Issue # $ 3 from $ 2") `
)
) ;