Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dbdc9e commit aa35bd7Copy full SHA for aa35bd7
1 file changed
go/ql/lib/semmle/go/Packages.qll
@@ -14,7 +14,7 @@ class Package extends @package {
14
/** Gets the path of this package. */
15
string getPath() {
16
exists(string fullPath | packages(this, _, fullPath, _) |
17
- result = fullPath.regexpReplaceAll("^.*/vendor/", "")
+ result = fullPath.regexpReplaceAll("^.*\\bvendor/", "")
18
)
19
}
20
0 commit comments