Skip to content

Commit

Permalink
Update Client.php
Browse files Browse the repository at this point in the history
  • Loading branch information
moriony committed Jan 15, 2014
1 parent 0865f31 commit fdec3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Moriony/Service/A1Sms/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function setPassword($password)
*/
public function setSender($sender)
{
if(!is_scalar($sender) || !preg_match('/^[\d\w]{1,15}$/usi', $sender)) {
if(!is_scalar($sender) || !preg_match('/^[\d\w]{1,11}$/usi', $sender)) {
throw new InvalidSenderName;
}
$this->sender = $sender;
Expand Down Expand Up @@ -145,7 +145,7 @@ protected function call($operation, array $params)
*/
public function send($phone, $message)
{
if(!is_scalar($phone) || !preg_match('/^[\d]{11,13}$/usi', $phone)) {
if(!is_scalar($phone) || !preg_match('/^[\d]{11,15}$/usi', $phone)) {
throw new InvalidPhoneNumber;
}
if(!is_scalar($message)) {
Expand Down

0 comments on commit fdec3eb

Please sign in to comment.