diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-29 09:20:03 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-29 09:20:03 +0200 |
commit | cc54d51321b789ee8a7a0fb5c209f6006194582c (patch) | |
tree | 248627aa74cb1ec4f03d61306ddfd7f6e484b18e /src/lstrlib.js | |
parent | 2e8de4113771b717f529b0a21f8a39f4ea60799a (diff) | |
parent | a0acc63c7d0171f1b45bebf9d74744515f9217c7 (diff) | |
download | fengari-cc54d51321b789ee8a7a0fb5c209f6006194582c.tar.gz fengari-cc54d51321b789ee8a7a0fb5c209f6006194582c.tar.bz2 fengari-cc54d51321b789ee8a7a0fb5c209f6006194582c.zip |
Merge branch 'master' of https://github.com/fengari-lua/fengari
Diffstat (limited to 'src/lstrlib.js')
-rw-r--r-- | src/lstrlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js index 41c48ef..56817a0 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -1107,7 +1107,7 @@ const push_onecapture = function(ms, i, s, e) { if (i === 0) lua.lua_pushlstring(ms.L, ms.src.slice(s), e - s); /* add whole match */ else - lauxlib.luaL_error(ms.L, lua.to_luastring(`invalid capture index %${i + 1}`)); + lauxlib.luaL_error(ms.L, lua.to_luastring("invalid capture index %%%d"), i + 1); } else { let l = ms.capture[i].len; if (l === CAP_UNFINISHED) lauxlib.luaL_error(ms.L, lua.to_luastring("unfinished capture", true)); |