Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/forms / build / dist / validators / isValidAddress.js
Size: Mime:
"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