| Index: grit/gather/chrome_html.py
|
| diff --git a/grit/gather/chrome_html.py b/grit/gather/chrome_html.py
|
| index 60123f07fb7de43d379e966cf9c399bdd2ea1fe1..d5a2b07cd0e61bc44819bf23ac95c7abc1692601 100644
|
| --- a/grit/gather/chrome_html.py
|
| +++ b/grit/gather/chrome_html.py
|
| @@ -38,11 +38,11 @@ _CSS_IMAGE_URLS = lazy_re.compile(
|
| _CSS_IMAGE_SETS = lazy_re.compile(
|
| '(?P<attribute>content|background|[\w-]*-image):[ ]*' +
|
| '-webkit-image-set\((?P<images>' +
|
| - '([,\n ]*url\((?P<quote>"|\'|)[^"\'()]*(?P=quote)\)[ ]*[0-9.]*x)*)\)',
|
| + '([,\r\n ]*url\((?P<quote>"|\'|)[^"\'()]*(?P=quote)\)[ ]*[0-9.]*x)*)\)',
|
| re.MULTILINE)
|
| # Matches a single image in a CSS image set with the capture group scale.
|
| -_CSS_IMAGE_SET_IMAGE = lazy_re.compile(
|
| - '[,\n ]*url\((?P<quote>"|\'|)[^"\'()]*(?P=quote)\)[ ]*(?P<scale>[0-9.]*x)',
|
| +_CSS_IMAGE_SET_IMAGE = lazy_re.compile('[,\r\n ]*' +
|
| + 'url\((?P<quote>"|\'|)[^"\'()]*(?P=quote)\)[ ]*(?P<scale>[0-9.]*x)',
|
| re.MULTILINE)
|
| _HTML_IMAGE_SRC = lazy_re.compile(
|
| '<img[^>]+src=\"(?P<filename>[^">]*)\"[^>]*>')
|
|
|