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:
nex3 2007-05-05 19:54:53 +00:00
parent f1715dbf08
commit ee7e585121
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ module Sass
DIRECTIVE_CHAR = ?@ DIRECTIVE_CHAR = ?@
# The regex that matches attributes of the form <tt>:name attr</tt>. # 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>. # The regex that matches attributes of the form <tt>name: attr</tt>.
ALTERNATE_ATTRIBUTE_SELECTOR = /^[^\s:]+:(\s+|$)/ ALTERNATE_ATTRIBUTE_SELECTOR = /^[^\s:]+:(\s+|$)/