Skip to content

Commit 7d11fc2

Browse files
committed
Fix bug in regex
I accidentally included a `$` at the end, so it only matched a major version suffix at the end of the package path.
1 parent a9afbfa commit 7d11fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ql/lib/semmle/go/Packages.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Package extends @package {
2323
* removed.
2424
*/
2525
string getPathWithoutMajorVersionSuffix() {
26-
result = this.getPath().regexpReplaceAll("[./]v\\d+$", "")
26+
result = this.getPath().regexpReplaceAll("[./]v\\d+", "")
2727
}
2828

2929
/** Gets the scope of this package. */

0 commit comments

Comments
 (0)