mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 05:49:25 +01:00
Merge pull request #570 from slingamn/confusables_lastlook
remove m -> rn mapping
This commit is contained in:
commit
609e1aeb94
4
Gopkg.lock
generated
4
Gopkg.lock
generated
@ -62,11 +62,11 @@
|
||||
revision = "9520e82c474b0a04dd04f8a40959027271bab992"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:7caf3ea977a13cd8b9a2e1ecef1ccaa8e38f831b4f6ffcb8bd0aa909c48afb3a"
|
||||
digest = "1:e7de6e4830c9d4fe1463c09a2ee15ec3eb9455c2ea916044675c413e8a9c6608"
|
||||
name = "github.com/oragono/confusables"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "d5dd03409482fae2457f0742be22782890f720c2"
|
||||
revision = "fe1cf31a24b01cac37194669863df51713e08e54"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
@ -50,7 +50,7 @@
|
||||
name = "github.com/oragono/go-ident"
|
||||
|
||||
[[constraint]]
|
||||
revision = "d5dd03409482fae2457f0742be22782890f720c2"
|
||||
revision = "fe1cf31a24b01cac37194669863df51713e08e54"
|
||||
name = "github.com/oragono/confusables"
|
||||
|
||||
[[constraint]]
|
||||
|
@ -148,7 +148,7 @@ func Skeleton(name string) (string, error) {
|
||||
// same as PRECIS:
|
||||
name = width.Fold.String(name)
|
||||
|
||||
name = confusables.Skeleton(name)
|
||||
name = confusables.SkeletonTweaked(name)
|
||||
|
||||
// internationalized lowercasing for skeletons; this is much more lenient than
|
||||
// Casefold. In particular, skeletons are expected to mix scripts (which may
|
||||
|
@ -153,8 +153,8 @@ func TestSkeleton(t *testing.T) {
|
||||
return skel
|
||||
}
|
||||
|
||||
if skeleton("warning") != skeleton("waming") {
|
||||
t.Errorf("i give up, Oragono should consider rn confusable with m")
|
||||
if skeleton("warning") == skeleton("waming") {
|
||||
t.Errorf("Oragono shouldn't consider rn confusable with m")
|
||||
}
|
||||
|
||||
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")
|
||||
}
|
||||
|
||||
if skeleton("SMT") != "smt" {
|
||||
if skeleton("SMT") != skeleton("smt") {
|
||||
t.Errorf("after skeletonizing, we should casefold")
|
||||
}
|
||||
|
||||
|
2
vendor
2
vendor
@ -1 +1 @@
|
||||
Subproject commit 8ddbb531841add50f8b7aff8fe00bef311448aaa
|
||||
Subproject commit 6fb1b63d24a6ccc28a8aecbd47a7eb18a2ace2c9
|
Loading…
Reference in New Issue
Block a user