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 c5651d1 commit 8abe5bc
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 @@ -800,7 +800,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 8abe5bc

Please sign in to comment.