You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varGlobalize=require("globalize")Globalize.load(require("cldr-data").entireSupplemental());Globalize.load(require("cldr-data").entireMainFor("en"));Globalize.loadTimeZone(require("iana-tz-data"));varglobalize=Globalize("en"),date=newDate(2001,2-1,3,4,5,6,789);varcheck=function(fmt){console.log(fmt+' ==> '+globalize.dateFormatter({raw: fmt})(date));};check("h''m''s''");// fails, expect 4'5'6' but get 456check("'h''m''s'''");// works, expect h'm's'check("h''''m''''s");// fails, expect 4'5'6 (or 4''5''6, unclear from spec?) but get 456
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: