2
This commit is contained in:
12
parent_dir/20240530212112Z/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
generated
vendored
Normal file
12
parent_dir/20240530212112Z/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Checks whether the entire input sequence can be matched
|
||||
* against the regular expression.
|
||||
* @return {boolean}
|
||||
*/
|
||||
export default function matchesEntirely(text, regular_expression) {
|
||||
// If assigning the `''` default value is moved to the arguments above,
|
||||
// code coverage would decrease for some weird reason.
|
||||
text = text || '';
|
||||
return new RegExp('^(?:' + regular_expression + ')$').test(text);
|
||||
}
|
||||
//# sourceMappingURL=matchesEntirely.js.map
|
Reference in New Issue
Block a user