Skip to content

Commit 4108501

Browse files
authored
fix: trailing slash must immediately follow .git
1 parent 0b6f291 commit 4108501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/GitHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class GitHelper {
1818
/(?<domain>[^\s\/\?#:]+)/,
1919
/(?::(?<port>[0-9]{1,5}))?/,
2020
/(?:[\/:](?<owner>[^\s\/\?#:]+))?/,
21-
/(?:[\/:](?<repo>(?:[^\s\/\?#:.]|\.(?!git\s*\/?$))+))/,
21+
/(?:[\/:](?<repo>(?:[^\s\/\?#:.]|\.(?!git\/?\s*$))+))/,
2222
/(?:.git)?\/?\s*$/,
2323
]
2424
.map((r) => r.source)

0 commit comments

Comments
 (0)