UNPKG

mine-h5-ui

Version:

一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍

13 lines (12 loc) 348 B
const d = () => ({ phone: /^1[3456789]\d{9}$/, password: /^(?!_+$)(?!\d+$)(?!\D+$)[A-Za-z0-9]{6,12}$/i, email: /^(\w|-)+@(\w|-)+(\.(\w|-)+)+$/i, idCard: /^((\d{18})|([0-9x]{18})|([0-9X]{18}))$/i, imgs: /\.(svg|gif|png|jpe?g)$/i, thousand: /(\d)(?=(\d{3})+$)/g, thousandFloat: /(\d)(?=(\d{3})+\.)/g }); export { d as useValidator };