Skip to content

Commit

Permalink
Fixes issue ggordan#93 [Lots of random "red dots" showing up in the g…
Browse files Browse the repository at this point in the history
…utter]
  • Loading branch information
digeomel committed Jul 29, 2016
1 parent 42e70a7 commit 18f799c
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 @@ -205,7 +205,7 @@ def color(self):
def generate_webcolors(self):
"""Generates a list of web color names."""
self.WEB_COLORS = dict((name, color) for (name, color) in css3_names_to_hex.items())
self.WEB_COLORS_REGEX = '((?<!\$)'+ '|(?<!\$)'.join(self.WEB_COLORS.keys()) +')'
self.WEB_COLORS_REGEX = '[\\s:](' + '|'.join(self.WEB_COLORS.keys()) + ')[\\s;]'

def web_color(self):
"""Returns the color in the line, if any CSS color name is found."""
Expand Down

0 comments on commit 18f799c

Please sign in to comment.