diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-11 04:45:56 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-11 04:45:56 +0000 |
commit | 090f71652b598badef32b379c0f36c2c6e4a9542 (patch) | |
tree | 75faa8735bc09e8bc1dfa2ef0d500735565a4a31 /regexec.c | |
parent | 9bcb75adede2a39cb8240247959be87308b46bee (diff) | |
download | perl-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.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -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); |