Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
name = "github.com/oragono/go-ident"

[[constraint]]
revision = "d5dd03409482fae2457f0742be22782890f720c2"
revision = "fe1cf31a24b01cac37194669863df51713e08e54"
name = "github.com/oragono/confusables"

[[constraint]]
Expand Down
2 changes: 1 addition & 1 deletion irc/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions irc/strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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")
}

Expand Down