Skip to content

Commit c509c72

Browse files
committed
[js] When scanning a string also check at the end
1 parent 2e08397 commit c509c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/js/RegexCompiler.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class RegexCompiler {
144144
~ self.goto($scan)
145145
~ self.case($loop)
146146
~ "$!pos++;\n"
147-
~ "if ($!pos >= $!target.length) \{{self.fail}\}\n"
147+
~ "if ($!pos > $!target.length) \{{self.fail}\}\n"
148148
~ self.set_cursor_attr_int($!cursor, '$!from', $!pos)
149149
~ self.case($scan)
150150
~ self.mark($loop,$!pos,0)

0 commit comments

Comments
 (0)