A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
4.8k
stars
603
forks
source link
dateFormatter with raw pattern isn't handling two single quotes correctly when outside quoted text #822
Open
jonathan-saunders-ge opened 6 years ago
Thanks for this great package! :-)
The LDML spec says: "Two adjacent single vertical quotes (''), which represent a literal single quote, either inside or outside quoted text."
However
globalize.dateFormatter({raw: "h''m''s''"})
returns "456" instead of "4'5'6'".I ran this over at https://npm.runkit.com/globalize