Skip to content

Commit

Permalink
Merge pull request #441 from tomudding/fix/house-number-regex-too-res…
Browse files Browse the repository at this point in the history
…trictive

fix: house number regex too restrictive
  • Loading branch information
tomudding authored Sep 2, 2024
2 parents 8174b3b + e747b1e commit bf75a25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/Database/src/Form/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function getInputFilterSpecification(): array
'validators' => [
[
'name' => Regex::class,
'options' => ['pattern' => '/^[0-9]+[a-zA-Z]*/'],
'options' => ['pattern' => '/^[1-9]\d*(?:[ \/\-\#\.]?(?:[a-zA-Z]+|[1-9]\d*))?$/'],
],
],
],
Expand Down
2 changes: 1 addition & 1 deletion module/Database/src/Form/Fieldset/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function getInputFilterSpecification(): array
'validators' => [
[
'name' => Regex::class,
'options' => ['pattern' => '/^[0-9]+[a-z-A-Z\ \d\#\-\.\/]*$/'],
'options' => ['pattern' => '/^[1-9]\d*(?:[ \/\-\#\.]?(?:[a-zA-Z]+|[1-9]\d*))?$/'],
],
],
],
Expand Down

0 comments on commit bf75a25

Please sign in to comment.