Skip to content

Canadian address with unit fails #32

@tareqanwar

Description

@tareqanwar

Canadian address format puts unit number(if any) in front of house number.

i.e. 50-100 Street name, 50 - 100 Street name

One possible solution is the bellow code but it doesn't return the apartment number in the additional information. Can you add a fix on next release?

private static $generalNumberPrefixes = [
        // English
        'No [.:]?',
        'Nos ([.:]|\s)',
        'Number \s',

        //Canada
        '^[0-9]*\s?\-\s?',

        // German
        'Nr [.:]?',
        'Nummer \s',

        // Other
        '№ [.:]?',
        'Nº [.:]?',
        'n° [.:]?'
    ];

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