summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/rational.rb2
-rw-r--r--regex.c3
3 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index baf1863..5b98fdc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/lib/rational.rb b/lib/rational.rb
index a0f0b06..ccbbddd 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -271,7 +271,7 @@ class Integer
self
end
- def denomerator
+ def denomirator
1
end
diff --git a/regex.c b/regex.c
index 22cbb2c..57ce31f 100644
--- a/regex.c
+++ b/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))