-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi, awesome library! I found some issue with postal codes that has dash (or space char) in them.
state is null when address ends with "-1234", for example:
(async function () {
const util = require('util')
const parseAddressCallback = require('parse-address-string')
const parseAddress = util.promisify(parseAddressCallback)
const address = await parseAddress('1234 Road St, Brooklyn, NY 12345-1234')
console.log(address)
})()
Will result with:
{
street_address1: '1234 Road St',
city: 'Brooklyn',
state: null,
postal_code: '12345',
country: null
}
country-code-lookup version: 0.0.19
NodeJS version: 14.16.1
Metadata
Metadata
Assignees
Labels
No labels