Add more test cases; make some fixes

This commit is contained in:
Joe Farebrother
2022-02-10 12:03:03 +00:00
parent aa1337db86
commit 9e88c67c19
4 changed files with 74 additions and 7 deletions

View File

@@ -725,9 +725,6 @@ class RegExpConstant extends RegExpTerm {
not this instanceof RegExpCharacterClassEscape and
// exclude chars in quantifiers
// TODO: push this into regex library
not exists(int qstart, int qend | re.quantifiedPart(_, qstart, qend, _, _) |
qstart <= start and end <= qend
) and
(value = this.(RegExpNormalChar).getValue() or value = this.(RegExpQuote).getValue())
}