Skip to content

Commit 0b6f291

Browse files
authored
fix: allow substring 'git' & trailing slash in repo name
1 parent bb26640 commit 0b6f291

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))+))/,
21+
/(?:[\/:](?<repo>(?:[^\s\/\?#:.]|\.(?!git\s*\/?$))+))/,
2222
/(?:.git)?\/?\s*$/,
2323
]
2424
.map((r) => r.source)

0 commit comments

Comments
 (0)