Cleanup
This commit is contained in:
2
node_modules/validator/es/lib/isLocale.js
generated
vendored
2
node_modules/validator/es/lib/isLocale.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
import assertString from './util/assertString';
|
||||
var localeReg = /^[A-z]{2,4}([_-]([A-z]{4}|[\d]{3}))?([_-]([A-z]{2}|[\d]{3}))?$/;
|
||||
var localeReg = /^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;
|
||||
export default function isLocale(str) {
|
||||
assertString(str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user