Navigation Menu

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

Change order inside Polish month matching pattern #1404

Merged
merged 2 commits into from Sep 6, 2019

Conversation

damianstasik
Copy link

These three Polish dates currently cannot be correctly parsed due to a bug inside the month matching regular expression pattern:

  • 11 maja 2018 (matches only maj)
  • 11 października 2018 (matches only październik)
  • 11 listopada 2018 (matches only listopad)

Those three dates would yield the Invalid Date error when trying to parse them. It can be easily fixed by changing the order of months inside the matchMonthPatterns.wide regular expression, so that the formatted month name would be before the regular name.

Copy link
Contributor

@leshakoss leshakoss left a comment

Choose a reason for hiding this comment

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

Thank you! 🙏

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.

None yet

4 participants