summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2009-10-04 17:00:10 +0200
committerYves Orton <demerphq@gmail.com>2009-10-04 18:41:40 +0200
commit28e464fba839d02f376952199261fc8b7d58a0d8 (patch)
treea8e28f78bb8d3183bcca12688a61f7b312ad2c08 /regexec.c
parentec81ed5df789e3e2888d6260f8b3139f7be436b9 (diff)
downloadperl-28e464fba839d02f376952199261fc8b7d58a0d8.tar.gz
refactor some common logic in regexec.c
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 221e360ebf..83d216b7bb 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3483,17 +3483,11 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
nextchr = UCHARAT(locinput);
break;
}
- if (!(OP(scan) == SPACE
- ? isSPACE(nextchr) : isSPACE_LC(nextchr)))
- sayNO;
- nextchr = UCHARAT(++locinput);
- }
- else {
- if (!(OP(scan) == SPACE
- ? isSPACE(nextchr) : isSPACE_LC(nextchr)))
- sayNO;
- nextchr = UCHARAT(++locinput);
}
+ if (!(OP(scan) == SPACE
+ ? isSPACE(nextchr) : isSPACE_LC(nextchr)))
+ sayNO;
+ nextchr = UCHARAT(++locinput);
break;
case NSPACEL:
PL_reg_flags |= RF_tainted;