mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ee6a0ecbcb
commit
d0507efdc1
3 changed files with 7 additions and 3 deletions
|
@ -34,6 +34,11 @@ Tue May 13 17:58:08 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
|||
|
||||
* win32/win32.h (fsync): define as _commit().
|
||||
|
||||
Tue May 13 15:35:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* regex.c (re_match_exec): \Z changed to be consistent with new $
|
||||
(endbuf) behavior.
|
||||
|
||||
Tue May 13 14:48:07 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (error_pos): use $deferr for output instead of stderr
|
||||
|
|
|
@ -271,7 +271,7 @@ class Integer
|
|||
self
|
||||
end
|
||||
|
||||
def denomerator
|
||||
def denomirator
|
||||
1
|
||||
end
|
||||
|
||||
|
|
3
regex.c
3
regex.c
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue