Browse Source

have realSkeleton use cases.Fold as well

tags/v2.0.0-rc1
Shivaram Lingamneni 4 years ago
parent
commit
f9b5224ae0
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      irc/strings.go

+ 1
- 2
irc/strings.go View File

@@ -12,7 +12,6 @@ import (
12 12
 
13 13
 	"github.com/oragono/confusables"
14 14
 	"golang.org/x/text/cases"
15
-	"golang.org/x/text/language"
16 15
 	"golang.org/x/text/secure/precis"
17 16
 	"golang.org/x/text/unicode/norm"
18 17
 	"golang.org/x/text/width"
@@ -198,7 +197,7 @@ func realSkeleton(name string) (string, error) {
198 197
 	// violate the bidi rule). We also don't care if they contain runes
199 198
 	// that are disallowed by PRECIS, because every identifier must independently
200 199
 	// pass PRECIS --- we are just further canonicalizing the skeleton.
201
-	return cases.Lower(language.Und).String(name), nil
200
+	return cases.Fold().String(name), nil
202 201
 }
203 202
 
204 203
 // maps a nickmask fragment to an expanded, casefolded wildcard:

Loading…
Cancel
Save