Skip to content

Commit f0451d4

Browse files
author
Douglas Greenshields
committed
add NL validation
1 parent b72426d commit f0451d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Validator/LocalizedPostalCodeValidatorClosureProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public function fetchValidatorForCountry($country, $message = null)
8686
return $this->createValidatorClosureForConstraint($this->getFixedLengthDigitConstraint(5, $message));
8787
break;
8888

89+
case 'NL':
90+
return $this->createValidatorClosureForConstraint($this->getMultipleRegexConstraint(array('/^\d{4}\s[A-Z]{2}$/'), $message));
91+
break;
92+
8993
case 'PT':
9094
return $this->createValidatorClosureForConstraint($this->getMultipleRegexConstraint(array('/^\d{4}\-\d{3}$/'), $message));
9195
break;

0 commit comments

Comments
 (0)