Skip to content

Commit f884fe5

Browse files
abinavseelanbugthesystem
authored andcommitted
Remove .git only from string end (#74)
1 parent 1adca8b commit f884fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class BaseProvider {
1010
}
1111

1212
get baseUrl() {
13-
return this.gitUrl.toString('https').replace(/\.git/, '');
13+
return this.gitUrl.toString('https').replace(/(\.git)$/, '');
1414
}
1515

1616
/**

0 commit comments

Comments
 (0)