summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-01 00:00:37 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-01 00:00:37 +0000
commit4bdf9a6c61bdbd3ff9402e7dd5626648532bd8d6 (patch)
treee34d1ee93d6bd077c7f36349561d8ae12d6c3967 /regex.c
parentd9d40c0d797ef6e94886c2dced746eeb7c335eb1 (diff)
* regex.c (re_match_exec): $ _always_ matches at the end of string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/regex.c b/regex.c
index 698f3c7..22cbb2c 100644
--- a/regex.c
+++ b/regex.c
@@ -3883,8 +3883,7 @@ re_match_exec(bufp, string_arg, size, pos, beg, regs)
case endline:
if (AT_STRINGS_END(d)) {
- if (size == 0 || d[-1] != '\n')
- break;
+ break;
}
else if (*d == '\n')
break;