mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Allow $ANYVERSION token in Go package names
This commit is contained in:
@@ -206,7 +206,7 @@ module ModelValidation {
|
||||
or
|
||||
summaryModel(package, type, _, name, signature, ext, _, _, _, provenance) and pred = "summary"
|
||||
|
|
||||
not package.regexpMatch("[a-zA-Z0-9_\\./-]*") and
|
||||
not package.replaceAll("$ANYVERSION", "").regexpMatch("[a-zA-Z0-9_\\./-]*") and
|
||||
result = "Dubious package \"" + package + "\" in " + pred + " model."
|
||||
or
|
||||
not type.regexpMatch("[a-zA-Z0-9_\\$<>]*") and
|
||||
|
||||
Reference in New Issue
Block a user