UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

6 lines (5 loc) 369 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.USERNAME_REGEX = exports.EMAIL_REGEX = void 0; exports.EMAIL_REGEX = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; exports.USERNAME_REGEX = /^[_-]*[a-zA-Z0-9]+[a-zA-Z0-9_-]*$/;