diff --git a/app/SvgUtils.py b/app/SvgUtils.py index 9b00a58..8bee5f0 100644 --- a/app/SvgUtils.py +++ b/app/SvgUtils.py @@ -14,7 +14,7 @@ # Process img tags, replacing base64 SVG images with PNGs def process_svg(html): - pattern = re.compile(r'[^>]+?src=(?P[\'"]))(data:(?P[^;>]*?);base64,\s?(?P[^">]*?)(?P=quote))') + pattern = re.compile(r'[^>]+?src=(?P[\'"])data:)((?P[^;>]*?);base64,\s?(?P.*?)(?P=quote))') return re.sub(pattern, replace_img_base64, html)