diff --git a/app/SvgUtils.py b/app/SvgUtils.py
index 31df89d..24a7c35 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="data:)(?P[^;>]*?);base64,\s?(?P[^">]*?)"')
+ pattern = re.compile(r'[^>]+?src="data:)(?P[^;>]*?);base64,\s?(?P[A-Za-z0-9+/=]+)"')
return re.sub(pattern, replace_img_base64, html)