RegExp: don't look deep into class when calculating lookbehind length (PY-42776)

GitOrigin-RevId: b834ca01dc20d7e0f287270addf5e07db94f5800
This commit is contained in:
Bas Leijdekkers
2020-06-24 17:56:39 +02:00
committed by intellij-monorepo-bot
parent 9d7eb44586
commit 023dd078b3
2 changed files with 2 additions and 2 deletions

View File

@@ -457,7 +457,6 @@ public final class RegExpAnnotator extends RegExpElementVisitor implements Annot
@Override
public void visitRegExpClass(RegExpClass regExpClass) {
super.visitRegExpClass(regExpClass);
myLength++;
}

View File

@@ -8,4 +8,5 @@ re.compile(r"(?<!a<error descr="Unequal min and max in counted quantifier not al
re.compile(r"(?<!a|b<weak_warning descr="Single repetition">{1}</weak_warning>)")
re.compile(r"(?<!abcd|(ab){2})")
re.compile(r"(?<!abcde|x(ab){2})")
re.compile(r"(?<!a(ab|cd)|xyz)")
re.compile(r"(?<!a(ab|cd)|xyz)")
re.compile(r'(?<!aa|b[cd]|ee)str')