summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2007-01-09 01:46:31 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-01-09 10:04:37 +0000
commite357fc671749d483a102a060a774d41a9b256b46 (patch)
treead6b6dd8c8d0407474c2ac0da73f6ccbcbcfdb47 /pp_ctl.c
parent850d607338c285d0f6a7d66f1c4baf08de921004 (diff)
downloadperl-e357fc671749d483a102a060a774d41a9b256b46.tar.gz
Let the regex parser decide if we have a special pattern or not.
Message-ID: <9b18b3110701081546n2c3f19acy29adc0d233bb848c@mail.gmail.com> p4raw-id: //depot/perl@29730
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 8506daafe3..b439c3e5f4 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -177,7 +177,7 @@ PP(pp_regcomp)
if (!PM_GETRE(pm)->prelen && PL_curpm)
pm = PL_curpm;
- else if (strEQ("\\s+", PM_GETRE(pm)->precomp))
+ else if (PM_GETRE(pm)->extflags & RXf_WHITE)
pm->op_pmflags |= PMf_WHITE;
else
pm->op_pmflags &= ~PMf_WHITE;