Return 1 when expect matches

This commit is contained in:
Davis C 2024-04-16 20:22:13 -05:00
parent 4801816357
commit 2c3e53d50f

View file

@ -297,6 +297,7 @@ static int expect(lua_State *L)
// Match against the entire buffer // Match against the entire buffer
if (match_regex(&regex)) if (match_regex(&regex))
{ {
ret = 1;
break; break;
} }
} }