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: Don't ignore invalid language codes in RowParser.asLanguageCode #1291

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

asvechnikov2
Copy link
Collaborator

Summary:

Don't ignore invalid language codes in RowParser.asLanguageCode. Locale::forLanguageTag ignores invalid language codes and no notices are created.

Expected behavior:

Invalid language detected

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with gradle test to make sure you didn't break anything
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

Locale::forLanguageTag ignores invalid language codes and no notices
are created.
@CLAassistant
Copy link

CLAassistant commented Nov 10, 2022

CLA assistant check
All committers have signed the CLA.

* Make parseLocale static and fix the doc

* Apply google-java-format
Copy link
Collaborator

@aababilov aababilov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@aababilov aababilov merged commit b28ef34 into MobilityData:master Nov 10, 2022
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.

None yet

3 participants