1. Denis Bilenko
  2. cssutils

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';

  • Participants
  • Parent commits 7f31162
  • Branches default

Comments (0)

Files changed (1)

File src/cssutils/tokenize2.py

View file
         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):
         """