diff --git a/cmd/govulncheck/testdata/common/config.json b/cmd/govulncheck/testdata/common/config.json index 642526c4..1a0fae44 100644 --- a/cmd/govulncheck/testdata/common/config.json +++ b/cmd/govulncheck/testdata/common/config.json @@ -33,7 +33,7 @@ "replace": "Go: go1.18" }, { - "pattern": "\"go_version\": \"go[^\\s\"]*\"", + "pattern": "\"go_version\": \"go(.*)\"", "replace": "\"go_version\": \"go1.18\"" }, { @@ -41,7 +41,7 @@ "replace": "\"timestamp\": \"2024-01-01T00:00:00\"," }, { - "pattern": "path\": \"stdlib\",\n *\"version\": \"[^\\s]*\"", + "pattern": "path\": \"stdlib\",\n *\"version\": \"(.*)\"", "replace": "path\": \"stdlib\",\n \"version\": \"v1.18.0\"" } ] diff --git a/cmd/govulncheck/testdata/stdlib/config.json b/cmd/govulncheck/testdata/stdlib/config.json index 630175ab..bed4dcd2 100644 --- a/cmd/govulncheck/testdata/stdlib/config.json +++ b/cmd/govulncheck/testdata/stdlib/config.json @@ -41,7 +41,7 @@ "replace": "modified 01 Jan 21 00:00 UTC)" }, { - "pattern": "\"go_version\": \"go[^\\s\"]*\"", + "pattern": "\"go_version\": \"go(.*)\"", "replace": "\"go_version\": \"go1.18\"" } ]