diff options
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -345,7 +345,7 @@ Freg_match(re, str) Check_Type(str, T_STRING); start = research(re, str, 0); - if (start == -1) { + if (start < 0) { return Qnil; } return INT2FIX(start); |