|
|
|
@ -4760,7 +4760,7 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.canBeInternationallyDialled = |
|
|
|
i18n.phonenumbers.PhoneNumberUtil.matchesEntirely = function(regex, str) { |
|
|
|
/** @type {Array.<string>} */ |
|
|
|
var matchedGroups = (typeof regex == 'string') ? |
|
|
|
str.match('^(?:' + regex + ')$') : str.match(regex); |
|
|
|
str.match('^(?:' + regex + ')$') : str.match("^(?:" + regex.source + ")$"); |
|
|
|
if (matchedGroups && matchedGroups[0].length == str.length) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|