diff --git a/layouts/partials/picture.html b/layouts/partials/picture.html
index 98a10a47..c82bbd21 100644
--- a/layouts/partials/picture.html
+++ b/layouts/partials/picture.html
@@ -44,18 +44,18 @@
{{ $height := ""}}
{{ if eq .MediaType.SubType "svg" }}
{{ $svgContent := $resource.Content }}
- {{ range (findRESubmatch `width=["']?(\d*)` $svgContent 1) }}
+ {{ range (findRESubmatch `