diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-30 00:21:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-30 00:21:14 +0000 |
commit | 13ac4447f6a11498d84f668c636fa2b8eecb5d22 (patch) | |
tree | 5b1d006f36a07e0200a12c26309b6659639ec997 /regex.c | |
parent | e377a12bff690512a568b93c018ec42961ac2a48 (diff) |
* eval.c (rb_eval): while/until should not capture break unless
they are destination of the break.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3196,7 +3196,7 @@ re_search(bufp, string, size, startpos, range, regs) } } if (bufp->options & RE_OPTIMIZE_ANCHOR) { - if (bufp->options&RE_OPTION_SINGLELINE) { + if (bufp->options&RE_OPTION_MULTILINE && range > 0) { goto begbuf_match; } anchor = 1; |