We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac4f54 commit d2489dcCopy full SHA for d2489dc
modules/svg/svg.go
@@ -26,7 +26,7 @@ const defaultSize = 16
26
func Init() {
27
SVGs = Discover()
28
29
- // inline SVG rendering doesn't need `xmlns`
+ // Remove `xmlns` because inline SVG does not need it
30
r := regexp.MustCompile(`(<svg\b[^>]*?)\s+xmlns="[^"]*"`)
31
for name, svg := range SVGs {
32
SVGs[name] = r.ReplaceAllString(svg, "$1")
0 commit comments