Skip to content

Commit

Permalink
Iranyitoszam validator javitasa
Browse files Browse the repository at this point in the history
1106, 1007 is letezo iranyitoszam
  • Loading branch information
loonkwil committed Apr 25, 2014
1 parent 071c6a8 commit 1e340cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.zip-to-city.js
Expand Up @@ -91,7 +91,7 @@

// Valoban iranyitoszamot adott-e meg
var zip = $zipInput.val().trim();
if( !/^(?:1(?:[01][1-9]|2[1-3])[0-9]|[2-9][0-9]{3})$/.test(zip) ) {
if( !/^(?:1(?:[01][0-9]|2[1-3])[0-9]|[2-9][0-9]{3})$/.test(zip) ) {
return;
}
zip = parseInt(zip, 10);
Expand Down

0 comments on commit 1e340cb

Please sign in to comment.