variant: fix import resolution for modified variants #974

This commit is contained in:
Sören Weber 2024-12-19 23:01:28 +01:00
parent 66f4fbf5f0
commit f1701957c3
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 2 additions and 2 deletions

View file

@ -231,7 +231,7 @@ Generator run:
{{- range findRESubmatch `[ \t]*@import\s+[^$]*?theme-([^.]*?)\.css` $themecontent }}
{{- $subidentifier := index . 1 }}
{{- $themevariant = partial "get-theme-details.html" (dict "themevariant" $themevariant "identifier" $subidentifier) }}
{{- $tempthemecontent = replaceRE (printf `[ \t]*@import\s+[^$]*?theme-%s\.css` $subidentifier) $themevariant.themecontent $tempthemecontent 1 }}
{{- $tempthemecontent = replaceRE (printf `[ \t]*@import\s+[^$]*?theme-%s\.css["']?\s*\)?\s*;?` $subidentifier) $themevariant.themecontent $tempthemecontent 1 }}
{{- $chroma = $themevariant.chroma }}
{{- $chromacontent = $themevariant.chromacontent }}
{{- end }}

View file

@ -1 +1 @@
7.2.1+16d4de84becfa2d2e6bdb2394a2f4fa411bc0007
7.2.1+66f4fbf5f04db1aa128d8f951c0883cc226312b9