Skip to content

Commit a3b2fb7

Browse files
committed
fix: go.mod parsing
1 parent 051d919 commit a3b2fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type Version = {
1414

1515
const versionRe = /^v(\d+)\.(\d+)(?:\.(\d+))?$/
1616
// TODO(ldez): it should be updated to match v2 module name.
17-
const modVersionRe = /github.com\/golangci\/golangci-lint\s(v.+)/
17+
const modVersionRe = /github.com\/golangci\/golangci-lint\s(v[^ ]+)/
1818

1919
const parseVersion = (s: string): Version => {
2020
if (s == "latest" || s == "") {

0 commit comments

Comments
 (0)