Cleanup
This commit is contained in:
2
node_modules/validator/es/lib/matches.js
generated
vendored
2
node_modules/validator/es/lib/matches.js
generated
vendored
@@ -6,5 +6,5 @@ export default function matches(str, pattern, modifiers) {
|
||||
pattern = new RegExp(pattern, modifiers);
|
||||
}
|
||||
|
||||
return pattern.test(str);
|
||||
return !!str.match(pattern);
|
||||
}
|
||||
Reference in New Issue
Block a user