We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a3bed commit 46d0c6fCopy full SHA for 46d0c6f
go/ql/lib/semmle/go/Packages.qll
@@ -33,7 +33,7 @@ class Package extends @package {
33
string toString() { result = "package " + this.getPath() }
34
}
35
36
-string majorVersionSuffixRegex() { result = "[./]v\\d+" }
+string majorVersionSuffixRegex() { result = "[./]v\\d+(?=$|/)" }
37
38
/**
39
* Gets an import path that identifies a package in module `mod` with the given path,
0 commit comments