File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { Range } from 'vscode';
33import { RemoteProvider } from './provider' ;
44
55const issueEnricherRegEx = / ( ^ | \s ) ( # ( [ 0 - 9 ] + ) ) \b / gi;
6+ const stripGitRegex = / \/ _ g i t \/ ? / i;
67
78export class VisualStudioService extends RemoteProvider {
89
@@ -20,8 +21,10 @@ export class VisualStudioService extends RemoteProvider {
2021 }
2122
2223 enrichMessage ( message : string ) : string {
24+ // Strip off any `_git` part from the repo url
25+ const baseUrl = this . baseUrl . replace ( stripGitRegex , '/' ) ;
2326 // Matches #123
24- return message . replace ( issueEnricherRegEx , `$1[$2](${ this . baseUrl } /_workitems/edit/$3 "Open Work Item $2")` ) ;
27+ return message . replace ( issueEnricherRegEx , `$1[$2](${ baseUrl } /_workitems/edit/$3 "Open Work Item $2")` ) ;
2528 }
2629
2730 protected getUrlForBranches ( ) : string {
You can’t perform that action at this time.
0 commit comments