Fixing a Regex for compatibility with Oniguruma Regex engine. Thanks, Spongy!
git-svn-id: svn://hamptoncatlin.com/haml/trunk@502 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
f1715dbf08
commit
ee7e585121
|
@ -40,7 +40,7 @@ module Sass
|
|||
DIRECTIVE_CHAR = ?@
|
||||
|
||||
# The regex that matches attributes of the form <tt>:name attr</tt>.
|
||||
ATTRIBUTE = /:([^\s=:]+)\s*(=?)(?:\s|$)+(.*)/
|
||||
ATTRIBUTE = /:([^\s=:]+)\s*(=?)(?:\s+|$)(.*)/
|
||||
|
||||
# The regex that matches attributes of the form <tt>name: attr</tt>.
|
||||
ALTERNATE_ATTRIBUTE_SELECTOR = /^[^\s:]+:(\s+|$)/
|
||||
|
|
Loading…
Reference in New Issue