Permalink
Browse files

Bug #18291 Pass tests Validate\NZ.php

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@308559 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 1b5c3da commit 1f02d6054dab0ed47298024ef56d36e74dd9ab56 @CloCkWeRX CloCkWeRX committed Feb 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Validate/NZ.php
View
2 Validate/NZ.php
@@ -101,7 +101,7 @@ function postalCode($postcode, $strong = false)
return in_array($postcode, $postcodes);
}
}
- return preg_match('^[0-9]{4}$', $postcode);
+ return preg_match('/^[0-9]{4}$/', $postcode);
}
/**
* Validates a New Zealand IRD Number (ssn equiv)

0 comments on commit 1f02d60

Please sign in to comment.