From 88d0254d16e98fa768899db08fed21af161ff2cc Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Thu, 13 Feb 2025 13:02:05 +0100 Subject: [PATCH] fix: go.mod parsing --- src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.ts b/src/version.ts index ceaf685..78f427f 100644 --- a/src/version.ts +++ b/src/version.ts @@ -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 == "") {