Add # before unit number if it isn't prefixed with anything
This commit is contained in:
parent
b37313adb4
commit
50d29eea37
@ -368,6 +368,10 @@ def normalizeAddress(number, street, unit, city, state, zipcode, lat, lon, zippr
|
|||||||
#if not src.config.appendPlus4:
|
#if not src.config.appendPlus4:
|
||||||
# plus4 = ""
|
# plus4 = ""
|
||||||
|
|
||||||
|
if unit and not unitprefix and re.match(r"^[A-Z0-9]+$", unit):
|
||||||
|
# Put a # before the unit number if it's by itself
|
||||||
|
unitprefix = "#"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"number": number,
|
"number": number,
|
||||||
"street": streetonly,
|
"street": streetonly,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user