Skip to content

Commit

Permalink
cleanup: update scpSyntaxRe regexp (go-kratos#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
demoManito authored and xiongpan828 committed Jan 5, 2023
1 parent a55c5a9 commit 3d8b06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kratos/internal/base/vcs_url.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

var (
scpSyntaxRe = regexp.MustCompile(`^([a-zA-Z0-9_]+)@([a-zA-Z0-9._-]+):(.*)$`)
scpSyntaxRe = regexp.MustCompile(`^(\w+)@([\w.-]+):(.*)$`)
scheme = []string{"git", "https", "http", "git+ssh", "ssh", "file", "ftp", "ftps"}
)

Expand Down

0 comments on commit 3d8b06e

Please sign in to comment.