-
Notifications
You must be signed in to change notification settings - Fork 6
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
The validator should be stricter with language codes #47
Labels
Comments
bfabio
changed the title
The validator should be stricter with langaguage codes
The validator should be stricter with language codes
Aug 18, 2020
bfabio
added a commit
to bfabio/publiccode-parser-go
that referenced
this issue
Mar 23, 2022
Related to italia#47.
bfabio
added a commit
to bfabio/publiccode-parser-go
that referenced
this issue
Mar 23, 2022
Go's language.Parse() is more lenient and allows non-BCP47 language tags. Let's add a disabled test for now. Related to italia#47.
Go's language.Parse() is lenient and allows non-BCP47 language tags, this probably means we need to switch the parsing library altogether to a stricter one, which I don't know if it exists. Putting on hold for now. |
bfabio
added a commit
to bfabio/publiccode-parser-go
that referenced
this issue
Mar 23, 2022
Go's language.Parse() is more lenient and allows non-BCP47 language tags. Let's add a disabled test for now. Related to italia#47.
bfabio
added a commit
to bfabio/publiccode-parser-go
that referenced
this issue
Feb 18, 2023
Go's language.Parse() is more lenient and allows non-BCP47 language tags. Let's add a disabled test for now. Related to italia#47.
bfabio
added a commit
to bfabio/publiccode-parser-go
that referenced
this issue
Jul 20, 2024
Change the tests so there's no invalid BCP "eng" language. We don't catch that as an error yet because of italia#47.
bfabio
added a commit
that referenced
this issue
Jul 20, 2024
Change the tests so there's no invalid BCP "eng" language. We don't catch that as an error yet because of #47.
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
checkLanguageCode
should be stricter and check for valid BCP47 tags only, as defined in the standardThe text was updated successfully, but these errors were encountered: