Repository URL to install this package:
|
Version:
3.6.1 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const exotic_1 = require("exotic");
const matchValidAddressCharacters = /^[A-Za-z0-9,.-:;#/'°\s]*$/;
function isEmptyOrValidAddress(value) {
if (exotic_1.isEmpty(value)) {
return true;
}
else {
return exotic_1.isString(value) && matchValidAddressCharacters.test(value);
}
}
exports.isEmptyOrValidAddress = isEmptyOrValidAddress;
//# sourceMappingURL=isValidAddress.js.map