All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.constants.regex.js Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.VALID_URL_REGEX = exports.VALID_SLUG_REGEX = exports.VALID_EMAIL_REGEX = void 0;
var VALID_EMAIL_REGEX = /^[\w+-.]+@[a-z\d-]+(\.[a-z\d-]+)*\.[a-z]+$/i;
exports.VALID_EMAIL_REGEX = VALID_EMAIL_REGEX;
var VALID_URL_REGEX = /^((https?):\/\/)?(www.)?[a-z0-9-]+(\.[a-z]{2,}){1,3}(#?\/?[a-zA-Z0-9#-]+)*\/?(\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+(&[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+)*)?$/;
exports.VALID_URL_REGEX = VALID_URL_REGEX;
var VALID_SLUG_REGEX = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
exports.VALID_SLUG_REGEX = VALID_SLUG_REGEX;
//# sourceMappingURL=regex.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy