summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/regexec.c b/regexec.c
index dd51bc1e22..107d68bcae 100644
--- a/regexec.c
+++ b/regexec.c
@@ -824,6 +824,10 @@ regmatch(regnode *prog)
if (regeol - locinput > 1)
sayNO;
break;
+ case EOS:
+ if (regeol != locinput)
+ sayNO;
+ break;
case SANY:
if (!nextchr && locinput >= regeol)
sayNO;