diff --git a/src/script.c b/src/script.c index 5a8fd41..6b99ec2 100644 --- a/src/script.c +++ b/src/script.c @@ -297,6 +297,7 @@ static int expect(lua_State *L) // Match against the entire buffer if (match_regex(®ex)) { + ret = 1; break; } }