diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-14 09:44:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-14 09:44:14 +0000 |
commit | d0507efdc1980651d310ee35da1d468e967f3bca (patch) | |
tree | 2f5ae7d2c71118f974a4897a0d85099ea7cbfcab /regex.c | |
parent | ee6a0ecbcb7787d2ccbfdc33721f9ee9cf85c2e4 (diff) | |
download | ruby-d0507efdc1980651d310ee35da1d468e967f3bca.tar.gz |
* regex.c (re_match_exec): \Z changed to be consistent with new $
(endbuf) behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3904,8 +3904,7 @@ re_match_exec(bufp, string_arg, size, pos, beg, regs) /* Match at the very end of the data. */ case endbuf2: if (AT_STRINGS_END(d)) { - if (size == 0 || d[-1] != '\n') - break; + break; } /* .. or newline just before the end of the data. */ if (*d == '\n' && AT_STRINGS_END(d+1)) |