Skip to content

Commit 38551c2

Browse files
committedNov 4, 2015
allow xxx-xxx code format
In codeRegister. Registration
1 parent d74db1a commit 38551c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/Registration.php

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public function codeRegister($code)
120120
throw new Exception('The provided phone number is not valid.');
121121
}
122122

123+
$code = str_replace('-', '', $code);
123124
//$countryCode = ($phone['ISO3166'] != '') ? $phone['ISO3166'] : 'US';
124125
//$langCode = ($phone['ISO639'] != '') ? $phone['ISO639'] : 'en';
125126

0 commit comments

Comments
 (0)