UNPKG

mui-dynamic-field

Version:

A dynamic and customizable input field component for React, built with Material UI & TypeScript.

25 lines (23 loc) 441 B
const REGEX = { NUMBERS: { pattern: /[^0-9]/ }, PHONE: { pattern: /^\d{8,15}$/ }, EMAIL: { pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/ }, DECIMALS: { pattern: /^\d+(\.\d{1,2})?$/ }, COUNTRY_CODE: { pattern: /^\+\d{1,4}$/ }, PASSWORD: { pattern: /[0-9A-Za-z!@#$*&^%]{8}/, message: "Include upper, lower, digit, and special character" } }; export { REGEX }; //# sourceMappingURL=constants.js.map