aboutsummaryrefslogtreecommitdiffstats
path: root/src/validators.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/validators.js')
-rw-r--r--src/validators.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/validators.js b/src/validators.js
index e2a9d7f6..265d95de 100644
--- a/src/validators.js
+++ b/src/validators.js
@@ -181,8 +181,9 @@ extend(angularValidator, {
return (date &&
date.getFullYear() == fields[3] &&
date.getMonth() == fields[1]-1 &&
- date.getDate() == fields[2]) ?
- _null : "Value is not a date. (Expecting format: 12/31/2009).";
+ date.getDate() == fields[2])
+ ? _null
+ : "Value is not a date. (Expecting format: 12/31/2009).";
},
/**