From f9b5224ae0899c42327fda0ee46d88e5299962c3 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 18 Dec 2019 08:19:36 -0500 Subject: [PATCH] have realSkeleton use cases.Fold as well --- irc/strings.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/irc/strings.go b/irc/strings.go index e03f15d2..bf229f93 100644 --- a/irc/strings.go +++ b/irc/strings.go @@ -12,7 +12,6 @@ import ( "github.com/oragono/confusables" "golang.org/x/text/cases" - "golang.org/x/text/language" "golang.org/x/text/secure/precis" "golang.org/x/text/unicode/norm" "golang.org/x/text/width" @@ -198,7 +197,7 @@ func realSkeleton(name string) (string, error) { // violate the bidi rule). We also don't care if they contain runes // that are disallowed by PRECIS, because every identifier must independently // pass PRECIS --- we are just further canonicalizing the skeleton. - return cases.Lower(language.Und).String(name), nil + return cases.Fold().String(name), nil } // maps a nickmask fragment to an expanded, casefolded wildcard: