Skip to content

Commit 8a06ca5

Browse files
committed
Allow $ANYVERSION token in Go package names
1 parent 477341d commit 8a06ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ql/lib/semmle/go/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ module ModelValidation {
206206
or
207207
summaryModel(package, type, _, name, signature, ext, _, _, _, provenance) and pred = "summary"
208208
|
209-
not package.regexpMatch("[a-zA-Z0-9_\\./-]*") and
209+
not package.replaceAll("$ANYVERSION", "").regexpMatch("[a-zA-Z0-9_\\./-]*") and
210210
result = "Dubious package \"" + package + "\" in " + pred + " model."
211211
or
212212
not type.regexpMatch("[a-zA-Z0-9_\\$<>]*") and

0 commit comments

Comments
 (0)