mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-11-02 10:36:55 +00:00
more efficient regex on email.
This commit is contained in:
1 parent
dfbe4381a9
commit
8dfad32e43
1 file changed
+1
-1
@@ -120,7 +120,7 @@ export default {
|
||||
}
|
||||
},
|
||||
validateEmail(mail){
|
||||
return (/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(mail))
|
||||
return (/\S+@\S+\.\S+/.test(mail))
|
||||
},
|
||||
checkNewPassword(pass){
|
||||
return (pass.length >= 9)
|
||||
|
||||
Reference in new issue
Block a user