UNPKG

mongodb-schema

Version:

Infer the probabilistic schema for a MongoDB collection.

9 lines 382 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isEmail = void 0; const emailRegex = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/; function isEmail(value) { return emailRegex.test(value); } exports.isEmail = isEmail; //# sourceMappingURL=email.js.map