Skip to content

Commit

Permalink
Fix unescaped formating string in sk locale
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fturmel committed Jun 29, 2021
1 parent ea3f050 commit aadd0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/locale/sk/_lib/formatRelative/index.js
Expand Up @@ -41,7 +41,7 @@ function nextWeek(day) {
case 0: /* Sun */
case 4: /* Wed */
case 6 /* Sat */:
return "'budúcu' " + weekday + " 'o' p"
return "'budúcu " + weekday + " o' p"
default:
return "'budúci' eeee 'o' p"
}
Expand Down

0 comments on commit aadd0f1

Please sign in to comment.