diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2014-03-31 19:20:11 +0200 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2014-03-31 19:24:32 +0200 |
commit | a72bfbb80a5b971a036f21c95e7bbfca001e1427 (patch) | |
tree | e4c06f610fa04c99ee406ede792e51b306d019f7 /Visitor | |
parent | ec1aa6d84abd7667754620e96e3392367975f82b (diff) | |
download | Praspel-a72bfbb80a5b971a036f21c95e7bbfca001e1427.zip Praspel-a72bfbb80a5b971a036f21c95e7bbfca001e1427.tar.gz Praspel-a72bfbb80a5b971a036f21c95e7bbfca001e1427.tar.bz2 |
Update the regex syntactic sugar.
Diffstat (limited to 'Visitor')
-rw-r--r-- | Visitor/Interpreter.php | 3 |
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': |