Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add confusables implementation to stringsx #92

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

rowanseymour
Copy link
Member

No description provided.

assert.True(t, stringsx.Confusable("foo", "foo"))
assert.True(t, stringsx.Confusable("١", "۱")) // 0x661 vs 0x6f1
assert.True(t, stringsx.Confusable("بلی", "بلى")) // 0x6cc vs 0x649
assert.True(t, stringsx.Confusable("nyaruka", "𝕟𝔂𝛼𝐫ᴜ𝞳𝕒"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Merging #92 (9a33b69) into main (a8fda03) will increase coverage by 0.05%.
The diff coverage is 94.11%.

@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
+ Coverage   91.61%   91.66%   +0.05%     
==========================================
  Files          34       35       +1     
  Lines        1598     1632      +34     
==========================================
+ Hits         1464     1496      +32     
- Misses        101      102       +1     
- Partials       33       34       +1     
Files Changed Coverage Δ
stringsx/confusables.go 94.11% <94.11%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@rowanseymour rowanseymour merged commit c32ef51 into main Aug 7, 2023
7 checks passed
@rowanseymour rowanseymour deleted the confusables branch August 7, 2023 18:50
@github-actions github-actions bot locked and limited conversation to collaborators Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant