%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/static/node_modules/libphonenumber-js/source/helpers/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/static/node_modules/libphonenumber-js/source/helpers/matchesEntirely.js |
/** * 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) }