Skip to content

Commit

Permalink
Accept both valid strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed May 18, 2024
1 parent 57f6253 commit 78fbc89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway/GatewayModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ public function switchFields($data)

private function isPhoneValid($billing_phone)
{
return preg_match('/^\+[1-9]\d{10,13}$/', $billing_phone);
return preg_match('/^\+[1-9]\d{10,13}$|^[1-9]\d{9,13}$/', $billing_phone);
}

public function addPhoneWhenRest($arrayContext)
Expand Down

0 comments on commit 78fbc89

Please sign in to comment.