Skip to content

Commit

Permalink
Merge pull request #59 from tdhsmith/rgba-hsla-regex-fix
Browse files Browse the repository at this point in the history
Reinstate rgba & hsla capture group
  • Loading branch information
jbrooksuk committed Aug 7, 2014
2 parents 25f0cad + 44028dd commit f902811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion line.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Line:

# Four digits is three digits (which we save for later),
# and then a comma and then the fourth digit.
FOUR_DIGITS = THREE_DIGITS + ',' + DIGIT
FOUR_DIGITS = '(' + THREE_DIGITS + '),' + DIGIT

HEX_REGEXP = '#((?:[0-9a-fA-F]{3}){1,2}(?![0-9a-fA-F]+))'
RGB_REGEXP = 'rgb\(' + THREE_DIGITS + '\)'
Expand Down

0 comments on commit f902811

Please sign in to comment.