const s={data(){return{maxSize:1e3,passwordLength:6,imageTypes:["image/jpeg","image/png"],numberReg:/^[\s()+-]*([0-9][\s()+-]*){6,20}$/,reg:/^(([^<>()\]\\.,;:\s@"]+(\.[^<>()\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/}},methods:{imageFile(e){return!(!this.imageTypes.includes(e.type)||e.size/1e3>this.maxSize)},isValidEmail(e){return this.reg.test(e)},isValidNumber(e){return this.numberReg.test(e)},isValidLength(e){return e.length>=this.passwordLength}}};export{s as v};
