Fix parsing of alternations in character classes

This commit is contained in:
Joe Farebrother
2022-03-08 16:23:24 +00:00
parent 5ba6bafbef
commit 49374b877a
3 changed files with 4 additions and 1 deletions

View File

@@ -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)
}