Skip to content

Commit 255e2f3

Browse files
author
Ian Langworth
committed
Corrected error messages for min and max validators.
1 parent d65b237 commit 255e2f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validator/validator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
return numRe.test(v);
229229
});
230230

231-
v.fn("[max]", "Please enter a value smaller than $1", function(el, v) {
231+
v.fn("[max]", "Please enter a value no larger than $1", function(el, v) {
232232

233233
// skip empty values and dateinputs
234234
if (v === '' || dateInput && el.is(":date")) { return true; }
@@ -237,7 +237,7 @@
237237
return parseFloat(v) <= parseFloat(max) ? true : [max];
238238
});
239239

240-
v.fn("[min]", "Please enter a value larger than $1", function(el, v) {
240+
v.fn("[min]", "Please enter a value of at least $1", function(el, v) {
241241

242242
// skip empty values and dateinputs
243243
if (v === '' || dateInput && el.is(":date")) { return true; }

0 commit comments

Comments
 (0)