Skip to content

Commit a850e14

Browse files
committed
being much more liberal with the attribute/value pattern
1 parent 9b1de0f commit a850e14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cssreflow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ def parse_file(file_name, config):
8282
#print "Parsing: %s" % (file_name)
8383

8484
re_statement = re.compile("^\s*([\#\.\ a-zA-Z0-9\-\_\@\:]+)\s*{(.*?)}", re.M|re.S)
85-
re_property = re.compile("([-\w]+)\s*:\s*([\\\/\:\'\"\(\)\#\%\_\-\.\ a-zA-Z0-9]+)\s*;", re.M|re.S)
85+
86+
#re_property = re.compile("([-\w]+)\s*:\s*([\\\/\:\'\"\(\)\#\%\_\-\.\ a-zA-Z0-9]+)\s*;", re.M|re.S)
87+
# Rather than explicitly allowing chars (as above), we'll take anything that isn't a semi-colon
88+
re_property = re.compile("([-\w]+)\s*:\s*([^\;]+)\s*;", re.M|re.S)
8689

8790
# Might be able to clean this up using Python 3.1's sorted dictionary someday...
8891
data = {'__keys__':[], '__errors__':[], '__warnings__':[]}

0 commit comments

Comments
 (0)