Browse Source

Merge pull request #570 from slingamn/confusables_lastlook

remove m -> rn mapping
tags/v1.1.0
Daniel Oaks 5 years ago
parent
commit
609e1aeb94
No account linked to committer's email address
5 changed files with 8 additions and 8 deletions
  1. 2
    2
      Gopkg.lock
  2. 1
    1
      Gopkg.toml
  3. 1
    1
      irc/strings.go
  4. 3
    3
      irc/strings_test.go
  5. 1
    1
      vendor

+ 2
- 2
Gopkg.lock View File

@@ -62,11 +62,11 @@
62 62
   revision = "9520e82c474b0a04dd04f8a40959027271bab992"
63 63
 
64 64
 [[projects]]
65
-  digest = "1:7caf3ea977a13cd8b9a2e1ecef1ccaa8e38f831b4f6ffcb8bd0aa909c48afb3a"
65
+  digest = "1:e7de6e4830c9d4fe1463c09a2ee15ec3eb9455c2ea916044675c413e8a9c6608"
66 66
   name = "github.com/oragono/confusables"
67 67
   packages = ["."]
68 68
   pruneopts = "UT"
69
-  revision = "d5dd03409482fae2457f0742be22782890f720c2"
69
+  revision = "fe1cf31a24b01cac37194669863df51713e08e54"
70 70
 
71 71
 [[projects]]
72 72
   branch = "master"

+ 1
- 1
Gopkg.toml View File

@@ -50,7 +50,7 @@
50 50
   name = "github.com/oragono/go-ident"
51 51
 
52 52
 [[constraint]]
53
-  revision = "d5dd03409482fae2457f0742be22782890f720c2"
53
+  revision = "fe1cf31a24b01cac37194669863df51713e08e54"
54 54
   name = "github.com/oragono/confusables"
55 55
 
56 56
 [[constraint]]

+ 1
- 1
irc/strings.go View File

@@ -148,7 +148,7 @@ func Skeleton(name string) (string, error) {
148 148
 	// same as PRECIS:
149 149
 	name = width.Fold.String(name)
150 150
 
151
-	name = confusables.Skeleton(name)
151
+	name = confusables.SkeletonTweaked(name)
152 152
 
153 153
 	// internationalized lowercasing for skeletons; this is much more lenient than
154 154
 	// Casefold. In particular, skeletons are expected to mix scripts (which may

+ 3
- 3
irc/strings_test.go View File

@@ -153,8 +153,8 @@ func TestSkeleton(t *testing.T) {
153 153
 		return skel
154 154
 	}
155 155
 
156
-	if skeleton("warning") != skeleton("waming") {
157
-		t.Errorf("i give up, Oragono should consider rn confusable with m")
156
+	if skeleton("warning") == skeleton("waming") {
157
+		t.Errorf("Oragono shouldn't consider rn confusable with m")
158 158
 	}
159 159
 
160 160
 	if skeleton("Phi|ip") != "philip" {
@@ -165,7 +165,7 @@ func TestSkeleton(t *testing.T) {
165 165
 		t.Errorf("fullwidth characters should skeletonize to plain old ascii characters")
166 166
 	}
167 167
 
168
-	if skeleton("SMT") != "smt" {
168
+	if skeleton("SMT") != skeleton("smt") {
169 169
 		t.Errorf("after skeletonizing, we should casefold")
170 170
 	}
171 171
 

+ 1
- 1
vendor

@@ -1 +1 @@
1
-Subproject commit 8ddbb531841add50f8b7aff8fe00bef311448aaa
1
+Subproject commit 6fb1b63d24a6ccc28a8aecbd47a7eb18a2ace2c9

Loading…
Cancel
Save