mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
Fix parsing of alternations in character classes
This commit is contained in:
@@ -807,6 +807,7 @@ abstract class RegexString extends StringLiteral {
|
||||
}
|
||||
|
||||
private predicate topLevel(int start, int end) {
|
||||
not this.inCharSet(start) and
|
||||
this.subalternation(start, end, _) and
|
||||
not this.isOptionDivider(end)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user