summaryrefslogtreecommitdiff
path: root/src/lstrlib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lstrlib.js')
-rw-r--r--src/lstrlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index 8e8b58e..c0dc2d2 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -1029,7 +1029,7 @@ const match = function(ms, s, p) {
case 'b'.charCodeAt(0): { /* balanced string? */
s = matchbalance(ms, s, p + 2);
if (s !== null) {
- p = p.slice(4);
+ p += 4;
gotoinit = true;
}
break;