| Index: grit/format/html_inline.py
|
| diff --git a/grit/format/html_inline.py b/grit/format/html_inline.py
|
| index 1b59d6a5bfb97a0da7f406b28fd2c8cd912ed042..fc9a061dd308da1d178bc466673dff3bc97434f1 100755
|
| --- a/grit/format/html_inline.py
|
| +++ b/grit/format/html_inline.py
|
| @@ -293,14 +293,14 @@ def DoInline(
|
| flat_text = rewrite_function(input_filepath, flat_text, distribution)
|
|
|
| flat_text = re.sub(
|
| - '<(?!script)[^>]+?src=(?P<quote>")(?P<filename>[^"\']*)\\1',
|
| + '<(?!script)(?:[^>]+?\s)src=(?P<quote>")(?P<filename>[^"\']*)\\1',
|
| SrcReplace, flat_text)
|
|
|
| # TODO(arv): Only do this inside <style> tags.
|
| flat_text = InlineCSSImages(flat_text)
|
|
|
| flat_text = re.sub(
|
| - '<link rel="icon".+?href=(?P<quote>")(?P<filename>[^"\']*)\\1',
|
| + '<link rel="icon"\s(?:[^>]+?\s)?href=(?P<quote>")(?P<filename>[^"\']*)\\1',
|
| SrcReplace, flat_text)
|
|
|
| if names_only:
|
|
|