mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
more efficient regex on email.
This commit is contained in:
@@ -120,7 +120,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
validateEmail(mail){
|
validateEmail(mail){
|
||||||
return (/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(mail))
|
return (/\S+@\S+\.\S+/.test(mail))
|
||||||
},
|
},
|
||||||
checkNewPassword(pass){
|
checkNewPassword(pass){
|
||||||
return (pass.length >= 9)
|
return (pass.length >= 9)
|
||||||
|
|||||||
Reference in New Issue
Block a user