summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_regexp.c')
-rw-r--r--src/lua/lua_regexp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 2f7ea3ea1..75e54bab5 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -568,6 +568,9 @@ lua_regexp_split (lua_State *L)
lua_rawseti (L, -2, ++i);
matched = TRUE;
}
+ else if (start == end) {
+ break;
+ }
old_start = end;
}