summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-09-11 04:45:56 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-11 04:45:56 +0000
commit090f71652b598badef32b379c0f36c2c6e4a9542 (patch)
tree75faa8735bc09e8bc1dfa2ef0d500735565a4a31 /regexec.c
parent9bcb75adede2a39cb8240247959be87308b46bee (diff)
downloadperl-090f71652b598badef32b379c0f36c2c6e4a9542.tar.gz
Replace #21158 with a better patch from Hugo
(for [perl #23769]). p4raw-id: //depot/perl@21174
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/regexec.c b/regexec.c
index d2e9c66358..464ceaf9e3 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4065,16 +4065,10 @@ S_regrepeat(pTHX_ regnode *p, I32 max)
case CANY:
scan = loceol;
break;
- case EXACT:
- if (do_utf8) {
- c = (U8)*STRING(p);
- while (scan < loceol && utf8_to_uvuni((U8*)scan, 0) == c)
- scan += UTF8SKIP(scan);
- } else { /* length of string is 1 */
- c = (U8)*STRING(p);
- while (scan < loceol && UCHARAT(scan) == c)
- scan++;
- }
+ case EXACT: /* length of string is 1 */
+ c = (U8)*STRING(p);
+ while (scan < loceol && UCHARAT(scan) == c)
+ scan++;
break;
case EXACTF: /* length of string is 1 */
c = (U8)*STRING(p);