Skip to content

Add invalid character test for is_possible_3wa#19

Open
Jonty wants to merge 1 commit intowhat3words:masterfrom
Jonty:add-test-for-valid-3wa-characters
Open

Add invalid character test for is_possible_3wa#19
Jonty wants to merge 1 commit intowhat3words:masterfrom
Jonty:add-test-for-valid-3wa-characters

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