51948469c2
- Stop ignoring web/app/index.html and web/app/assets/ - Bundle index-DBKIQT7H.js from current vite build (~101MB assets) Co-authored-by: Cursor <cursoragent@cursor.com>
1 line
461 B
JavaScript
1 line
461 B
JavaScript
function e(e=`此项`){return t=>!!t||`${e}不能为空`}function t(e=`值`){return t=>!t||!isNaN(Number(t))||`${e}必须是数字`}function n(e,t,n=`值`){return r=>{if(!r)return!0;let i=Number(r);return!isNaN(i)&&i>=e&&i<=t||`${n}必须在${e}-${t}之间`}}function r(e=`Cron表达式`){return t=>!t||/^[\d\s*\/,\-]+$/.test(t)||`${e}格式不正确`}function i(e,t=`密码`){return n=>n===e()||`两次${t}不一致`}export{e as a,n as i,t as n,i as r,r as t}; |