Subject: | sec_unit does not match numbers that precede the sec_unit_type |
Addresses in the following formats do not parse correctly:
1st Floor, 123 Street, Town, State
123 Street, 1st Floor, Town, State
Whereas they parse correctly when written as "Floor 1"
Additionally, this change: https://rt.cpan.org/Ticket/Display.html?id=44735 appears to have dropped the abbreviation for 'Floor' (Fl).
Looks like a fix would be required here:
$Addr_Match{sec_unit} = qr/
(:?
(?: (?:$Addr_Match{sec_unit_type_numbered} \W*)
| (\#)\W* (?{ $_{sec_unit_type} = $^N })
)
( [\w-]+) (?{ $_{sec_unit_num} = $^N })
)
|
$Addr_Match{sec_unit_type_unnumbered}
/ix;
Thanks.