Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11b457d

Browse files
committed
Allow - character in Go package names
1 parent e98c70c commit 11b457d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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.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)