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.
majorVersionSuffixRegex
1 parent 46d0c6f commit d4e8e4cCopy full SHA for d4e8e4c
go/ql/lib/semmle/go/Packages.qll
@@ -33,6 +33,12 @@ class Package extends @package {
33
string toString() { result = "package " + this.getPath() }
34
}
35
36
+/**
37
+ * Gets a regex which matches major version suffixes.
38
+ *
39
+ * For example, this will match "/v2" followed by the end of a string or a "/"
40
+ * (but it won't include the end of the strong or the "/" in the match).
41
+ */
42
string majorVersionSuffixRegex() { result = "[./]v\\d+(?=$|/)" }
43
44
/**
0 commit comments