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

Fix issues with long strings #30

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

varun-dhar
Copy link

confusables.normalize() has issues with long strings, especially numbers. It creates large lists that consume a great deal of memory (froze my pc lol). These changes allow it to be more tolerant of long strings by ignoring alphanumeric ascii characters. I've also done some minor code cleanup.
The testcases I noticed to be causing this issue were discord links, eg:
https://discord.com/channels/00000000000000000/00000000000000000/00000000000000000
https://cdn.discordapp.com/attachments/00000000000000000/00000000000000000/video0.mp4

@lazydog2
Copy link

The code in #36, or a version of it, might also assist with this issue.

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

Successfully merging this pull request may close these issues.

2 participants