perf: utils

pull/119/head
xingyu4j 2025-05-28 18:26:38 +08:00
parent 6236f59473
commit da45d15f0d
3 changed files with 1 additions and 18 deletions

View File

@ -2,6 +2,7 @@
* *
* *
*/ */
// 请使用 @vben/utils/download 代替 packages/@core/base/shared/src/utils/download.ts
/** /**
* *

View File

@ -6,4 +6,3 @@ export * from './formatTime';
export * from './formCreate'; export * from './formCreate';
export * from './rangePickerProps'; export * from './rangePickerProps';
export * from './routerHelper'; export * from './routerHelper';
export * from './validator';

View File

@ -1,17 +0,0 @@
// 参数校验,对标 Hutool 的 Validator 工具类
/** 手机号正则表达式(中国) */
const MOBILE_REGEX = /(?:0|86|\+86)?1[3-9]\d{9}/;
/**
*
*
* @param value
* @returns
*/
export function isMobile(value?: null | string): boolean {
if (!value) {
return false;
}
return MOBILE_REGEX.test(value);
}