datejs / Datejs

A JavaScript Date and Time Library
Other
1.89k stars 483 forks source link

Not parsing properly months of April and August in French language #97

Open cdebix opened 7 years ago

cdebix commented 7 years ago

Date.parse('sam. 01 avril 2017') or Date.parse('mar. 01 août 2017') both return null

while Date.parse('mer. 01 mars 2017') (and any other month except april and august) properly returns Wed Mar 01 2017 00:00:00 GMT+0100 (Paris, Madrid)

Also noticed that Date.parse('sam 01 avril 2017') (minus the .) or Date.parse('sa. 01 avril 2017') DO work though.

I can't find a fault in the locale regex...