chemerisuk / better-dateinput-polyfill

input[type=date] polyfill
http://chemerisuk.github.io/better-dateinput-polyfill/
MIT License
259 stars 58 forks source link

Allow valid "en-US" locale #99

Closed malbertSC closed 6 years ago

malbertSC commented 7 years ago

Currently, the only valid lang for using the US date localization is "en_US", while the ISO valid locale "en-US" is not accepted (even though this is what the readme mentions to use). This PR allows for "en-US" as well as the existing "en_US" and variations in capitalization.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.05%) to 91.613% when pulling f507e10a1e3d30bbb0c5c2054065e7a7cbd9c970 on malbertSC:master into dd47dd1b0d6b2b59ce0fd083582ded7e441f4755 on chemerisuk:master.

chemerisuk commented 6 years ago

Fixed in 3.0.0-rc.2