We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d38ac39 commit 997786dCopy full SHA for 997786d
line.py
@@ -204,7 +204,7 @@ def color(self):
204
def generate_webcolors(self):
205
"""Generates a list of web color names."""
206
self.WEB_COLORS = dict((name, color) for (name, color) in css3_names_to_hex.items())
207
- self.WEB_COLORS_REGEX = "("+ "|".join(self.WEB_COLORS.keys()) +")"
+ self.WEB_COLORS_REGEX = '((?<!\$)'+ '|(?<!\$)'.join(self.WEB_COLORS.keys()) +')'
208
209
def web_color(self):
210
"""Returns the color in the line, if any CSS color name is found."""
0 commit comments