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

suspicious characters detecter/remover #1478

Open
DenuxPlays opened this issue May 12, 2024 · 1 comment
Open

suspicious characters detecter/remover #1478

DenuxPlays opened this issue May 12, 2024 · 1 comment

Comments

@DenuxPlays
Copy link

DenuxPlays commented May 12, 2024

New feature motivation

To detect differences between amazon.com and аmаzon.com. (and similiar)

New feature description

Find suspicious characters (like invisible character, cyrillic character).

New feature implementation

I know that symfony has a constraint for this but I am not familiar if there is something similiar in the js world, but I pretty sure there is as there is an npm package for everything.

@recurser
Copy link
Owner

@DenuxPlays interesting (and useful) idea - I've never heard of this.

I suspect that this would be extremely hard to port to client-side JS. They do have a list of "confusables" though - this could be used to create a JS library with similar functionality:

https://www.unicode.org/Public/security/revision-05/confusables.txt

I think this feature is out of scope for string.is, but if anyone has any suggestions on a way to approach this without too much work I'd be keen to hear them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants