fix: go.mod parsing

This commit is contained in:
Fernandez Ludovic 2025-02-13 13:02:05 +01:00
parent 051d919338
commit 88d0254d16

View file

@ -14,7 +14,7 @@ export type Version = {
const versionRe = /^v(\d+)\.(\d+)(?:\.(\d+))?$/
// TODO(ldez): it should be updated to match v2 module name.
const modVersionRe = /github.com\/golangci\/golangci-lint\s(v.+)/
const modVersionRe = /github.com\/golangci\/golangci-lint\s(v\S+)/
const parseVersion = (s: string): Version => {
if (s == "latest" || s == "") {