diff options
author | Git <git@what.cd> | 2013-02-22 08:00:24 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-02-22 08:00:24 +0000 |
commit | c2746069c183484bf0f3eff54d8a27db1b738509 (patch) | |
tree | 1ef8d06f7c125e07c728e6048fdec371c1d144e6 /static/functions/validate.js | |
parent | 57b88f03c17e9b5eab8137f9692843b4b297851f (diff) | |
download | Gazelle-c2746069c183484bf0f3eff54d8a27db1b738509.zip Gazelle-c2746069c183484bf0f3eff54d8a27db1b738509.tar.gz Gazelle-c2746069c183484bf0f3eff54d8a27db1b738509.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/validate.js')
-rw-r--r-- | static/functions/validate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/functions/validate.js b/static/functions/validate.js index 9a126fd..dbfb514 100644 --- a/static/functions/validate.js +++ b/static/functions/validate.js @@ -2,9 +2,9 @@ var elemStyles=Array(); var errorElems=Array(); function validEmail(str) { - if (str.match(/^[_a-z0-9-]+([.+][_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i)) { + if (str.match(/^[_a-z0-9-]+([.+][_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i)) { return true; - } else { + } else { return false; } } |