Skip to content

Commit

Permalink
Perform the Unicode Normalization first.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sim4n6 committed Oct 17, 2023
1 parent 5e1ea8f commit f9c4918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog.go
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 f9c4918

Please sign in to comment.