Closed ghost closed 3 years ago
I've not looked at the code, but this smells of .lastIndex
not being updated correctly.
Confirmed. Here's a minimal test:
var r = /foo*/g;
r.test('table football');
alert(r.lastIndex);
This should alert 9, but JS-Interpreter alerts 0.
This code alerts
true
andtrue
. Which is incorrect, it's suppose to alerttrue
andfalse
.Test Mdn Reference