Subject: | Support ZIP+4 without hyphen |
Sometimes I have to deal with addresses with a ZIP+4 that doesn't have
a hyphen. For instance, 606066306 instead of 60606-6306. Here's a
patch that makes the hyphen optional.
Thanks for a great module,
Mark Pickett
Subject: | US.pm.patch |
--- US.pm Tue May 17 09:12:46 2005
+++ US.pm.new Thu Feb 2 11:24:11 2006
@@ -695,7 +695,7 @@
sort { length $b <=> length $a }
values %Directional),
dircode => join("|", keys %Direction_Code),
- zip => qr/\d{5}(?:-\d{4})?/,
+ zip => qr/\d{5}(?:-?\d{4})?/,
corner => qr/(?:\band\b|\bat\b|&|\@)/i,
unit => qr/(?:(?:su?i?te|p\W*[om]\W*b(?:ox)?|dept|apt|ro*m|fl|apt|unit|box)\W+|#\W*)[\w-]+/i,
);