mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
18 lines (17 loc) • 458 B
JavaScript
/*!
* mine-h5-ui v2.15.0
* Copyright (c) 2025 biaov
* @license MIT
*/
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
};