Repository URL to install this package:
|
Version:
3.4.0 ▾
|
import { isEmpty, isString } from 'exotic'
const matchValidAddressCharacters = /^[A-Za-z0-9,.-:;#/'°\s]*$/
function isEmptyOrValidAddress(value: string): boolean {
if (isEmpty(value)) {
return true
} else {
return isString(value) && matchValidAddressCharacters.test(value)
}
}
export { isEmptyOrValidAddress }