aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lstrlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index 90341e7..81b754d 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -1198,7 +1198,7 @@ const str_find_aux = function(L, find) {
} else {
let ms = new MatchState(L);
let s1 = init - 1;
- let anchor = s[0] === char['^'];
+ let anchor = p[0] === char['^'];
if (anchor) {
p = p.slice(1); lp--; /* skip anchor character */
}