summaryrefslogtreecommitdiff
path: root/regcomp.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 /regcomp.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 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 80e5cfbf3d..07e68bdee3 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -3310,7 +3310,7 @@ tryagain:
}
if (len > 0)
*flagp |= HASWIDTH;
- if (len == 1)
+ if (len == 1 && UNI_IS_INVARIANT(ender))
*flagp |= SIMPLE;
if (!SIZE_ONLY)
STR_LEN(ret) = len;