Commits

Denis Bilenko committed 72af329

fix a bug in regex which accidentally includes '|'

This causes failure when parsing 'https://dwz7u9t8u8usb.cloudfront.net/m/c738d0495823/bun/css/bundle.css';

Comments (0)

Files changed (1)

src/cssutils/tokenize2.py

         u'@variables': CSSProductions.VARIABLES_SYM
         }
     _linesep = u'\n'
-    unicodesub = re.compile(r'\\[0-9a-fA-F]{1,6}(?:\r\n|[\t|\r|\n|\f|\x20])?').sub
-    cleanstring = re.compile(r'\\((\r\n)|[\n|\r|\f])').sub
+    unicodesub = re.compile(r'\\[0-9a-fA-F]{1,6}(?:\r\n|[\t\r\n\f\x20])?').sub
+    cleanstring = re.compile(r'\\((\r\n)|[\n\r\f])').sub
 
     def __init__(self, macros=None, productions=None, doComments=True):
         """