mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Fix validation regexes for go
This commit is contained in:
committed by
Owen Mansel-Chan
parent
0151cd4f2e
commit
aa747ea5ff
@@ -258,10 +258,10 @@ module CsvValidation {
|
||||
or
|
||||
summaryModel(namespace, type, _, name, signature, ext, _, _, _) and pred = "summary"
|
||||
|
|
||||
not namespace.regexpMatch("[a-zA-Z0-9_\\.]+") and
|
||||
not namespace.regexpMatch("[a-zA-Z0-9_\\./]+") and
|
||||
msg = "Dubious namespace \"" + namespace + "\" in " + pred + " model."
|
||||
or
|
||||
not type.regexpMatch("[a-zA-Z0-9_\\$<>]+") and
|
||||
not type.regexpMatch("[a-zA-Z0-9_\\$<>]*") and
|
||||
msg = "Dubious type \"" + type + "\" in " + pred + " model."
|
||||
or
|
||||
not name.regexpMatch("[a-zA-Z0-9_]*") and
|
||||
|
||||
Reference in New Issue
Block a user