mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-14 23:11:14 +00:00
fix: go.mod parsing
This commit is contained in:
parent
051d919338
commit
88d0254d16
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ export type Version = {
|
||||||
|
|
||||||
const versionRe = /^v(\d+)\.(\d+)(?:\.(\d+))?$/
|
const versionRe = /^v(\d+)\.(\d+)(?:\.(\d+))?$/
|
||||||
// TODO(ldez): it should be updated to match v2 module name.
|
// 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 => {
|
const parseVersion = (s: string): Version => {
|
||||||
if (s == "latest" || s == "") {
|
if (s == "latest" || s == "") {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue