Skip to content

Commit

Permalink
change regex support 10
Browse files Browse the repository at this point in the history
  • Loading branch information
hashemi committed Feb 6, 2017
1 parent 1f797f9 commit 9e29eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plate.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function setPlate($plate){

public function getRegEx(){
$farsiChars = implode('|', array_keys($this->_suportedChars));
return "/([1-9]\d{1})\s+({$farsiChars})\s+([1-9]\d{2})\s+\-\s+([1-9]\d{1})\s+(ایران)/";
return "/([1-9]\d{1})\s+({$farsiChars})\s+([1-9]\d{2})\s+\-\s+([1-9]\d{1}|10)\s+(ایران)/";
}

public function validate($plate = null, $softCheck = false){
Expand Down

0 comments on commit 9e29eb3

Please sign in to comment.