resources: Fix scss vs css import regexp

Fixes #7063
This commit is contained in:
Bjørn Erik Pedersen
2020-03-17 08:03:25 +01:00
parent 1a8af7d4f0
commit c7b6d74e89
2 changed files with 3 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ func DecodeOptions(m map[string]interface{}) (opts Options, err error) {
}
var (
regularCSSImportTo = regexp.MustCompile(`.*(@import "(.*.css)";).*`)
regularCSSImportTo = regexp.MustCompile(`.*(@import "(.*\.css)";).*`)
regularCSSImportFrom = regexp.MustCompile(`.*(\/\* HUGO_IMPORT_START (.*) HUGO_IMPORT_END \*\/).*`)
)