Browse Source

Fix variable name

pull/3769/head
SG-Kang 1 year ago
committed by GitHub
parent
commit
f92e36864e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      javascript/i18n/phonenumbers/phonenumberutil.js

+ 1
- 1
javascript/i18n/phonenumbers/phonenumberutil.js View File

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


Loading…
Cancel
Save