Add # before unit number if it isn't prefixed with anything

This commit is contained in:
Skylar Ittner 2025-11-28 23:40:28 -07:00
parent b37313adb4
commit 50d29eea37

View File

@ -367,7 +367,11 @@ def normalizeAddress(number, street, unit, city, state, zipcode, lat, lon, zippr
#if not src.config.appendPlus4:
# 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 {
"number": number,
"street": streetonly,