Skip to content

Unexpected Result for address in New Zealand #21

@mtrappschuh

Description

@mtrappschuh

Given street:
D/5 The Esplanade
(Full Address: D/5 The Esplanade, Eastern Beach, Auckland 2012)

Current result:
array ( 'additionToAddress1' => '', 'streetName' => 'D/', 'houseNumber' => '5', 'houseNumberParts' => array ( 'base' => '5', 'extension' => '', ), 'additionToAddress2' => 'The Promenade', )

Expected result:
array ( 'additionToAddress1' => 'D/', 'streetName' => 'The Promenade', 'houseNumber' => '5', 'houseNumberParts' => array ( 'base' => '5', 'extension' => '', ), 'additionToAddress2' => '', )

The comma in the following line is breaking the expected result:
(?:(?P<A_Addition_to_address_1>.*?),\s*)? # Addition to address 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues that describe an unexpected behaviour in an existing functionality.minor"bug" issues that are neither "critical" nor "major".

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions