Skip to content

Commit

Permalink
Merge pull request from GHSA-wpmx-564x-h2mh
Browse files Browse the repository at this point in the history
Perform the Unicode Normalization first.
  • Loading branch information
gwennlbh authored Dec 26, 2023
2 parents 5e1ea8f + f9c4918 commit 15c57e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (store Catalog) Lookup(query string) (Theme, error) {
// to search for something.
// For example, it is used by (ThemeStore).Lookup
func lookupPreprocess(s string) string {
return strings.ToLower(norm.NFKD.String(regexp.MustCompile(`[-_ .]`).ReplaceAllString(s, "")))
return strings.ToLower(regexp.MustCompile(`[-_ .]`).ReplaceAllString(norm.NFKD.String(s), ""))
}

// LoadCatalog loads a directory of theme manifests.
Expand Down

0 comments on commit 15c57e7

Please sign in to comment.