-
Notifications
You must be signed in to change notification settings - Fork 742
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
DateTime.fromFormat & regex match failed once upgrade to latest version of Edge and Chrome #1384
Comments
Same here. This was working: And now, it fails. There's an unprintable unicode character in the regex right before the AM/PM indicator. This makes the parse fail, returning invalid date with the same legacy date strings as last week. My legacy date strings look like this: '2/21/2023 11:01:28 PM'. As a workaround, I now use: Which does not put the unicode character into the regex Have also confirmed this is not an issue in Safari |
This may be fixed by #1369 |
@dasa Thanks for the info. This PR created 3 weeks ago. Would you please help review it and merge it? I see you are contributor. |
That just means I've had PRs merged in the past: https://github.com/moment/luxon/commits?author=dasa I'm not able to merge any PRs myself. |
Any word on when this can be merged We are having this issue as well. |
+1 |
1 similar comment
+1 |
#1369 has been merged. The next version of Luxon will treat non-breaking white-space equally when parsing macro-tokens like |
Just confirmed that this is also an issue in safari. |
Describe the bug
Once upgrade to the latest version of edge and chrome. DateTime.fromFormat failed, even the output generated by itself.
When I looked into this. I find the regex match failed.
To Reproduce
Actual vs Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: