globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 603 forks source link

Error when parsing date #803

Closed minchevar closed 6 years ago

minchevar commented 6 years ago

Version 1.3.0 is used. Date parser returns error 'Uncaught TypeError: Cannot read property 'replace' of undefined'

Globalize('en').dateParser()('11/30/2010') 18:04:13.848 bm_globalization.js:1686 Uncaught TypeError: Cannot read property 'replace' of undefined at regexpEscape (bm_globalization.js:1686) at numberParseProperties (bm_globalization.js:5076) at Globalize.numberParser.Globalize.numberParser (bm_globalization.js:5302) at Globalize.dateParser.Globalize.dateParser (bm_globalization.js:8789) at :1:17