mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
remove m -> rn skeleton mapping again
This commit is contained in:
parent
ee08419f4a
commit
24c46235a3
@ -148,7 +148,7 @@ func Skeleton(name string) (string, error) {
|
|||||||
// same as PRECIS:
|
// same as PRECIS:
|
||||||
name = width.Fold.String(name)
|
name = width.Fold.String(name)
|
||||||
|
|
||||||
name = confusables.Skeleton(name)
|
name = confusables.SkeletonTweaked(name)
|
||||||
|
|
||||||
// internationalized lowercasing for skeletons; this is much more lenient than
|
// internationalized lowercasing for skeletons; this is much more lenient than
|
||||||
// Casefold. In particular, skeletons are expected to mix scripts (which may
|
// Casefold. In particular, skeletons are expected to mix scripts (which may
|
||||||
|
@ -153,8 +153,8 @@ func TestSkeleton(t *testing.T) {
|
|||||||
return skel
|
return skel
|
||||||
}
|
}
|
||||||
|
|
||||||
if skeleton("warning") != skeleton("waming") {
|
if skeleton("warning") == skeleton("waming") {
|
||||||
t.Errorf("i give up, Oragono should consider rn confusable with m")
|
t.Errorf("Oragono shouldn't consider rn confusable with m")
|
||||||
}
|
}
|
||||||
|
|
||||||
if skeleton("Phi|ip") != "philip" {
|
if skeleton("Phi|ip") != "philip" {
|
||||||
@ -165,7 +165,7 @@ func TestSkeleton(t *testing.T) {
|
|||||||
t.Errorf("fullwidth characters should skeletonize to plain old ascii characters")
|
t.Errorf("fullwidth characters should skeletonize to plain old ascii characters")
|
||||||
}
|
}
|
||||||
|
|
||||||
if skeleton("SMT") != "smt" {
|
if skeleton("SMT") != skeleton("smt") {
|
||||||
t.Errorf("after skeletonizing, we should casefold")
|
t.Errorf("after skeletonizing, we should casefold")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user