Skip to content

Commit b3ff3e3

Browse files
committed
Update remote path regex to handle non git users
1 parent 012a16d commit b3ff3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git/util/get-tool-url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const gitOriginHostname = ({
5353
export const gitRemotePath = (
5454
remote: string,
5555
): string | ((index?: string) => string) => {
56-
if (/^[a-z]+?@/.test(remote)) {
56+
if (/^[a-z0-9-]+?@/.test(remote)) {
5757
const [, path] = split(remote, ":");
5858
return (index = ""): string => {
5959
if (index === "") {

0 commit comments

Comments
 (0)