summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2007-05-28 21:46:04 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-05-29 08:49:06 +0000
commit5339e136a9a7fcf6a58c5035f0eaf25e6d680adc (patch)
treeda968966e0f6e798d1a29a99737f72927b65713b /regexec.c
parent37a7450d59b2f524aefb691fe4a055ad9dd6dd98 (diff)
downloadperl-5339e136a9a7fcf6a58c5035f0eaf25e6d680adc.tar.gz
Re: [perl #43015] regex /.*\z/ doesn't matches strings ending with \n
Message-ID: <9b18b3110705281046ib37acb4i7960fe415325270f@mail.gmail.com> p4raw-id: //depot/perl@31303
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index ba0f2b7562..c6dbcc0564 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1845,7 +1845,7 @@ Perl_regexec_flags(pTHX_ REGEXP * const prog, char *stringarg, register char *st
if (regtry(&reginfo, &s))
goto got_it;
after_try:
- if (s >= end)
+ if (s > end)
goto phooey;
if (prog->extflags & RXf_USE_INTUIT) {
s = re_intuit_start(prog, sv, s + 1, strend, flags, NULL);