aboutsummaryrefslogtreecommitdiffstats
path: root/Visitor/Interpreter.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-03-31 19:20:11 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-03-31 19:24:32 +0200
commita72bfbb80a5b971a036f21c95e7bbfca001e1427 (patch)
treee4c06f610fa04c99ee406ede792e51b306d019f7 /Visitor/Interpreter.php
parentec1aa6d84abd7667754620e96e3392367975f82b (diff)
downloadPraspel-a72bfbb80a5b971a036f21c95e7bbfca001e1427.zip
Praspel-a72bfbb80a5b971a036f21c95e7bbfca001e1427.tar.gz
Praspel-a72bfbb80a5b971a036f21c95e7bbfca001e1427.tar.bz2
Update the regex syntactic sugar.
Diffstat (limited to 'Visitor/Interpreter.php')
-rw-r--r--Visitor/Interpreter.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php
index bccc1b7..0781763 100644
--- a/Visitor/Interpreter.php
+++ b/Visitor/Interpreter.php
@@ -469,12 +469,11 @@ class Interpreter implements \Hoa\Visitor\Visit {
case '#regex':
$regex = $element->getChild(0)->accept($this, $handle, $eldnah);
- $length = 12;
if(true === $element->childExists(1))
$length = $element->getChild(1)->accept($this, $handle, $eldnah);
- return realdom()->regex($regex, $length);
+ return realdom()->regex($regex);
break;
case 'token':