From fa473930f424bf17a9e545b601c84dd2e61364e3 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 11 Nov 2019 23:37:35 +0100 Subject: Issue #1279 - Implement regular expression lookbehind Based on Tom Schuster's work, with extra minters for unicode. --- js/src/irregexp/RegExpAST.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/src/irregexp/RegExpAST.cpp') diff --git a/js/src/irregexp/RegExpAST.cpp b/js/src/irregexp/RegExpAST.cpp index 8dfd99057..43867c312 100644 --- a/js/src/irregexp/RegExpAST.cpp +++ b/js/src/irregexp/RegExpAST.cpp @@ -250,16 +250,16 @@ RegExpCapture::CaptureRegisters() } // ---------------------------------------------------------------------------- -// RegExpLookahead +// RegExpLookaround Interval -RegExpLookahead::CaptureRegisters() +RegExpLookaround::CaptureRegisters() { return body()->CaptureRegisters(); } bool -RegExpLookahead::IsAnchoredAtStart() +RegExpLookaround::IsAnchoredAtStart() { - return is_positive() && body()->IsAnchoredAtStart(); + return is_positive() && type() == LOOKAHEAD && body()->IsAnchoredAtStart(); } -- cgit v1.2.3