Skip to content

Add invalid character test for is_possible_3wa #19

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jonty
Copy link

@Jonty Jonty commented Jan 5, 2025

is_possible_3wa currently excludes invalid characters, but this is an incomplete list and many invalid characters can still be accepted as a "possible" w3w address.

This PR adds a failing test for this case, but does not fix the issue as the regex is very hard to understand and I think it's better that someone familiar with the original intent attempts to fix it properly.

This is also a problem with find_possible_3wa and did_you_mean.

`is_possible_3wa` currently excludes invalid characters, but this is an
incomplete list and many invalid characters can still be accepted as a
"possible" w3w address.
@ManuCiao
Copy link
Contributor

ManuCiao commented Jan 6, 2025

hi @Jonty
Thank you for bringing this issue to our attention. Someone from our team will review it as soon as possible!

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

Successfully merging this pull request may close these issues.

3 participants