Skip to content

Commit

Permalink
mistake in regex fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Campbell committed Mar 21, 2014
1 parent 680ee2a commit b15a3a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/SassScriptLexer.php
Expand Up @@ -85,11 +85,11 @@ public function lex($string, $context)
} elseif (($match = SassString::isa($string)) !== false) {
$stringed = new SassString($match);
if (
strlen($stringed->quote) == 0 &&
strlen($stringed->quote) == 0 &&
SassList::isa($string) !== false &&
// recursion loop prevented for expressions
// recursion loop prevented for expressions
// like "transition: -webkit-transform 1s"
!preg_match("/^\-\w+\-\w$", $stringed->value)
!preg_match("/^\-\w+\-\w+$/", $stringed->value)
) {
$tokens[] = new SassList($string);
} else {
Expand Down

0 comments on commit b15a3a2

Please sign in to comment.