Skip to content

Commit 775c7aa

Browse files
committed
Make backwards lookahead into a state machine.
1 parent ffe269d commit 775c7aa

File tree

8 files changed

+1634
-4816
lines changed

8 files changed

+1634
-4816
lines changed

pkgs/characters/lib/src/characters_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ class StringCharacterRange implements CharacterRange {
501501
}
502502
}
503503
state = move(state, category);
504-
if (state & maskBreak == flagBreak && --count == 0) {
504+
if (state & maskBreak != flagNoBreak && --count == 0) {
505505
_move(newStart, index);
506506
return true;
507507
}

0 commit comments

Comments
 (0)