Skip to content

Commit 42411fd

Browse files
committed
Java/Kotlin: Allow dashes in callable names (the Kotlin standard library contains methods with dashes).
1 parent d9e4aaf commit 42411fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ module ModelValidation {
555555
not type.regexpMatch("[a-zA-Z0-9_\\$<>]+") and
556556
result = "Dubious type \"" + type + "\" in " + pred + " model."
557557
or
558-
not name.regexpMatch("[a-zA-Z0-9_]*") and
558+
not name.regexpMatch("[a-zA-Z0-9_\\-]*") and
559559
result = "Dubious name \"" + name + "\" in " + pred + " model."
560560
or
561561
not signature.regexpMatch("|\\([a-zA-Z0-9_\\.\\$<>,\\[\\]]*\\)") and

0 commit comments

Comments
 (0)