Skip to content

Commit 755b3b1

Browse files
committed
no need to apply replacements to some components
1 parent 76c3b27 commit 755b3b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Geo/Address/Formatter.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,9 @@ sub _apply_replacements {
792792
}
793793

794794
foreach my $component (keys %$rh_components) {
795+
# some components dont need replacements
796+
next if ($component eq 'country_code');
797+
next if ($component eq 'house_number');
795798
foreach my $ra_fromto (@$raa_rules) {
796799
my $regexp;
797800
# do key specific replacement

0 commit comments

Comments
 (0)