We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad5e7f7 commit 4b9100cCopy full SHA for 4b9100c
src/ngx_http_lua_regex.c
@@ -948,7 +948,7 @@ ngx_http_lua_ngx_re_gmatch_iterator(lua_State *L)
948
offset++;
949
}
950
951
- if (offset >= (ssize_t) subj.len) {
+ if (offset > (ssize_t) subj.len) {
952
offset = -1;
953
954
if (!(ctx->flags & NGX_LUA_RE_COMPILE_ONCE)) {
t/035-gmatch.t
@@ -509,4 +509,5 @@ matched: []
509
matched: []
510
511
512
+matched: []
513
0 commit comments