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