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

Language.is_valid returns True for invalid tags #46

Closed
dscorbett opened this issue Sep 23, 2021 · 2 comments
Closed

Language.is_valid returns True for invalid tags #46

dscorbett opened this issue Sep 23, 2021 · 2 comments

Comments

@dscorbett
Copy link

is_valid returns True for an invalid tag if all its subtags are prefixes of valid subtags.

>>> Language.get('aaj').is_valid()
True
>>> Language.get('en-Latnx').is_valid()
True
@rspeer
Copy link
Owner

rspeer commented Oct 1, 2021

Oh, wow. Thanks for finding that, and I'll work on it.

@rspeer
Copy link
Owner

rspeer commented Oct 4, 2021

Fixed in master, and I'll release it soon.

@rspeer rspeer closed this as completed Oct 4, 2021
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