Skip to content

Commit d4f68ab

Browse files
authored
Correct code style errors due to white space.
1 parent b648d67 commit d4f68ab

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/core.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,8 +1382,8 @@ $.extend( $.validator, {
13821382
},
13831383

13841384
// https://jqueryvalidation.org/dateISO-method/
1385-
dateISO: function (value, element) {
1386-
if (this.optional(element)) {
1385+
dateISO: function( value, element ) {
1386+
if ( this.optional( element ) ) {
13871387
return true;
13881388
}
13891389
var check = false,
@@ -1393,21 +1393,21 @@ $.extend( $.validator, {
13931393
mm,
13941394
dd,
13951395
isLeap;
1396-
if (re.test(value)) {
1396+
if ( re.test( value ) ) {
13971397
check = true;
13981398

13991399
// Do a sanity check to ensure the date is valid
1400-
adata = value.match(re);
1401-
yyyy = parseInt(adata[1], 10);
1402-
mm = parseInt(adata[2], 10);
1403-
dd = parseInt(adata[3], 10);
1400+
adata = value.match( re );
1401+
yyyy = parseInt( adata[ 1 ], 10 );
1402+
mm = parseInt( adata[ 2 ], 10 );
1403+
dd = parseInt( adata[ 3 ], 10 );
14041404

1405-
if ((mm === 4 || mm === 6 || mm === 9 || mm === 11) && dd === 31) {
1405+
if ( (mm === 4 || mm === 6 || mm === 9 || mm === 11) && dd === 31 ) {
14061406
check = false;
1407-
} else if (mm === 2) {
1408-
isLeap = (yyyy % 4 === 0 && (yyyy % 100 !== 0 || yyyy % 400 === 0));
1407+
} else if ( mm === 2 ) {
1408+
isLeap = ( yyyy % 4 === 0 && ( yyyy % 100 !== 0 || yyyy % 400 === 0 ) );
14091409

1410-
if (dd > 29 || (dd === 29 && !isLeap) ) {
1410+
if ( dd > 29 || ( dd === 29 && !isLeap ) ) {
14111411
check = false;
14121412
}
14131413
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy