Skip to content

Commit

Permalink
Change isValidNumber to isPossibleNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelyn committed Sep 26, 2024
1 parent 97dfe93 commit 34ee8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/externalContraints/externalConstraints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const externalConstraints = {
if (value) {
try {
const phoneNumber = phoneUtil.parse(value, config.region);
if (!phoneUtil.isValidNumber(phoneNumber)) {
if (!phoneUtil.isPossibleNumber(phoneNumber)) {
record.addError(key, 'Invalid phone number.');
}
} catch (error) {
Expand Down

0 comments on commit 34ee8a2

Please sign in to comment.