diff --git a/assets/templates/heroicon.svg b/assets/templates/heroicon.svg index 1bb5e93..beb8f9f 100644 --- a/assets/templates/heroicon.svg +++ b/assets/templates/heroicon.svg @@ -1,9 +1,8 @@ {{- /* This template applies an ID to an SVG from the Heroicons set to be used with `` element. */ -}} -{{- $match := "\\s*(.*)\\s*" }} +{{- $match := "^\\s*" }} {{- $icon := resources.Get (printf "svg/heroicons/24/solid/%s.svg" .) }} -{{- $replaceWith := printf `${2}` . }} - -{{- replaceRE $match $replaceWith $icon.Content | safeHTML }} +{{- $replaceWith := printf `` . }} +{{- replaceRE $match $replaceWith $icon.Content | safeHTML -}}