package.constants.regex.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
export var VALID_EMAIL_REGEX = /^[\w+-.]+@[a-z\d-]+(\.[a-z\d-]+)*\.[a-z]+$/i;
export 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-%]+)*)?$/;
export var VALID_SLUG_REGEX = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
//# sourceMappingURL=regex.js.map