diff --git a/grip/constants.py b/grip/constants.py index 04692a2..96129e9 100644 --- a/grip/constants.py +++ b/grip/constants.py @@ -26,10 +26,10 @@ # Style parsing STYLE_URLS_SOURCE = 'https://github.com/joeyespo/grip' STYLE_URLS_RE = ( - ']+)[\'"]?.+media=[\'"]?(?:screen|all)[\'"]?.' - '+rel=[\'"]?stylesheet[\'"]?.+/>') + r''']+)['"]?.+media=['"]?(?:screen|all)['"]?.''' + r'''+rel=['"]?stylesheet['"]?.+/>''') STYLE_ASSET_URLS_RE = ( - 'url\([\'"]?(/static/fonts/octicons/[^\'" \)]+)[\'"]?\)') + r'''url\(['"]?(/static/fonts/octicons/[^'" \)]+)['"]?\)''') STYLE_ASSET_URLS_SUB_FORMAT = r'url("{0}\1")' STYLE_ASSET_URLS_INLINE_FORMAT = ( - 'url\([\'"]?((?:/static|{0})/[^\'" \)]+)[\'"]?\)') + r'''url\(['"]?((?:/static|{0})/[^'" \)]+)['"]?\)''')