Skip to content

Commit bb26640

Browse files
authored
fix: allow dot in repo name
1 parent 706f44d commit bb26640

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

0 commit comments

Comments
 (0)