mapbox / locale-utils

0 stars 2 forks source link

Fail to parse locale if locale fails to match regex #3

Closed 1ec5 closed 6 years ago

1ec5 commented 6 years ago

Fixed a test failure caused by a latent bug exposed by #2. parseLocaleIntoCodes() should return null for a bogus regex. Also added various tests.

/cc @bsudekum

1ec5 commented 6 years ago

The build is now failing on the use of const in eslint in strict mode. For some reason, this package runs on an ancient version of JavaScript. Can we get it upgraded?