-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[bug] Strict parsing regex is not escaped properly #4631
Comments
Bitte versuche: |
uvenil, right. This was a copy+paste problem. But my problem still remains. I made an jsfiddle: https://jsfiddle.net/m9c3Lde1/ |
@alaeMellon you're correct we have a bug here. The problem is that German |
I can no longer reproduce this. |
When I'm using
moment().locale("en");
moment("Th 17.05.2018", "dd DD.MM.YYYY", "en").format()
-> Result: "2018-05-17T00:00:00Z"
This is fine.
But when I'm using de there is a problem:
moment().locale("de");
moment("Di 15.05.18", "dd DD.MM.YYYY", "de").format()
-> Result: "Invalid date"
Does anybody know whats wrong?
Thanks for your help!
The text was updated successfully, but these errors were encountered: