validate.93ab4ac7.js 936 B

1
  1. const l=t=>/^[A-Z]+$/.test(t),a=t=>typeof Array.isArray>"u"?Object.prototype.toString.call(t)==="[object Array]":Array.isArray(t),o=t=>/^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(t),i=t=>{let e=!0;const r=t.split("-");return r.length===3?e=n(r[0])&&s(r[1])&&u(r[2]):e=!1,e},c=t=>{let e=!0;const r=t.split("-");return r.length===2?e=n(r[0])&&s(r[1]):e=!1,e},f=t=>{let e=!0;const r=t.split("-");return r.length===2?e=s(r[0])&&u(r[1]):e=!1,e},g=t=>{let e=!0;const r=t.split("-");return r.length===1?e=s(r[0]):e=!1,e},n=t=>/0\d{2,3}?$/.test(t)&&(t.length==3||t.length==4),s=t=>/\d{7,8}$/.test(t)&&(t.length==7||t.length==8),u=t=>/\d{1,6}$/.test(t)&&t.length>0&&t.length<7,p=t=>/[\u4e00-\u9fa5]$/.test(t),F=t=>/^[0-9]*$/.test(t),h=t=>/[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g.test(t);export{i as a,c as b,f as c,g as d,o as e,a as f,p as g,h,F as i,l as v};