Problem/Motivation

Currently validation fails for addresses with address line 1 like this one 11A, rte de Soral

Steps to reproduce

Proposed resolution

First let's try with a second regex that runs if the first one failed to find a house number. Another option could be to split the address line field via javascript.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Primsi created an issue. See original summary.

primsi’s picture

Status: Active » Needs review
StatusFileSize
new621 bytes

Initial try.

primsi’s picture

Added option to capture house address in 10/8 form to the first regex and updated the second one.

primsi’s picture

If the first regex matches, then the ouput street is used, which then produces unwanted results

primsi’s picture

Removing debug leftover.

primsi’s picture

primsi’s picture

Doh, the tests were in a new file ...

berdir’s picture

Status: Needs review » Needs work
+++ b/src/AddressVerification.php
@@ -79,28 +79,13 @@ class AddressVerification {
+      $matched = static::verifyAddress($street);

@@ -181,4 +166,37 @@ class AddressVerification {
+  public static function extractStreetParts(string $street_line) {

method name doesn't match?

primsi’s picture

Status: Needs work » Needs review
StatusFileSize
new456 bytes
new4.23 KB

Thanks.

  • Berdir committed 4348873a on 1.0.x authored by Primsi
    Issue #3389905 by Primsi: Handle addresses where address line 1 starts...
berdir’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.