bill hai 1 ano
pai
achega
b32354f494
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/system/shared/rules.ts

+ 1 - 1
src/views/system/shared/rules.ts

@@ -2,7 +2,7 @@ import { ui18n } from '@/lang'
 import type { Rule } from 'ant-design-vue/es/form'
 
 // export const phonePattern = /^1[3|4|5|7|8][0-9]\d{8}$/
-export const phonePattern = /^[^\u4e00-\u9fa5]{5,}$/
+export const phonePattern = /^[\w\W]{5,}$/
 export const passwordPattern = /^[^\u4e00-\u9fa5]{1,16}$/
 export const namePattern = /^[\d|\w]{1,16}$/