Allow many spaces and tabs after @import in CSS

This commit is contained in:
Daniel 2015-09-24 17:55:18 +02:00
parent afa2f339e6
commit 5fcbc839bb

View File

@ -41,8 +41,8 @@ _File = collections.namedtuple("_File",
_CSS_URL_PATTERNS = [re.compile(x) for x in [
r"@import '(?P<url>[^']+)'",
r'@import "(?P<url>[^"]+)"',
r"@import\s+'(?P<url>[^']+)'",
r'@import\s+"(?P<url>[^"]+)"',
r'''url\((?P<url>[^'"][^)]*)\)''',
r'url\("(?P<url>[^"]+)"\)',
r"url\('(?P<url>[^']+)'\)",