projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8a8b28
)
Re: [ID 20001029.005] Regex error: "cd. (A. Tw)" !~ /\((\w\. \w+)\)/
author
Hugo van der Sanden
<hv@crypt.org>
Mon, 30 Oct 2000 01:33:26 +0000
(
01:33
+0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 11 Jan 2001 04:38:24 +0000
(
04:38
+0000)
Message-Id: <
200010300133
.
BAA10390
@crypt.compulink.co.uk>
p4raw-id: //depot/perl@8403
regexec.c
patch
|
blob
|
history
t/op/re_tests
patch
|
blob
|
history
diff --git
a/regexec.c
b/regexec.c
index
5990ea3
..
c7d42cd
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-597,7
+597,7
@@
Perl_re_intuit_start(pTHX_ regexp *prog, SV *sv, char *strpos,
DEBUG_r(PerlIO_printf(Perl_debug_log,
", trying anchored starting at offset %ld...\n",
(long)(s1 + 1 - i_strpos)));
- other_last = last
+ 1;
+ other_last = last
; /* Fix this later. --Hugo */
s = HOP3c(t, 1, strend);
goto restart;
}
diff --git
a/t/op/re_tests
b/t/op/re_tests
index
52666da
..
1090e11
100644
(file)
--- a/
t/op/re_tests
+++ b/
t/op/re_tests
@@
-781,3
+781,4
@@
tt+$ xxxtt y - -
^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))? 012cxx0190 y - -
^(b+?|a){1,2}c bbbac y $1 a
^(b+?|a){1,2}c bbbbac y $1 a
+\((\w\. \w+)\) cd. (A. Tw) y -$1- -A. Tw-