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
"Format string contains an unescaped latin alphabet character v
" using "formatRelative" and "sk" locale
#2083
Comments
Hi, I just stumbled on your issue. This definitely is a bug. This error message comes from the nextWeek Sun/Sat/Wed returns an unescaped string. The
date-fns/src/locale/sk/_lib/formatRelative/index.js Lines 4 to 12 in ea3f050
|
See date-fns#2083, there is edge case formatting in the sk locale that can return an improperly escaped string and cause a runtime error.
Here's a CodeSandbox with the issue
https://codesandbox.io/s/date-fns-bug-qf1db?file=/src/index.js
Doesn't happen with all dates, only some. I wasn't able to find any clues to what exactly is causing this.
The text was updated successfully, but these errors were encountered: