Core: Stop trimming value inside required method

There was never much of a point anyway, and it causes problems.

Fixes #1498
This commit is contained in:
Jörn Zaefferer
2015-06-16 19:50:11 +02:00
parent f59bb1389f
commit 2ad0ca82da
3 changed files with 5 additions and 5 deletions

View File

@@ -1143,7 +1143,7 @@ $.extend( $.validator, {
if ( this.checkable( element ) ) {
return this.getLength( value, element ) > 0;
}
return $.trim( value ).length > 0;
return value.length > 0;
},
// http://jqueryvalidation.org/email-method/