isLocale doesn't work anymore (returns true on wrong locals) #2342
Open
Description
Describe the bug
I was using isLocale to check locale string like "en-US" or "fr-CA" and so on.
Everything was working fine on 13.9.0, but today I'm trying to upgrade to validator 13.11.0 and my unit tests are failing.
Examples
validator.isLocale("french"), validator.isLocale("frenchy") returns true in validator 13.11.0, returns false on validator 13.9.0