Skip to content

Commit 9d038dd

Browse files
author
Zach Shepherd
committed
Mask: fix bug in visual test case
1 parent dd0b0b6 commit 9d038dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/visual/mask/mask.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
definitions: {
2929
hh: function( value ) {
3030
value = parseInt( value, 10 );
31-
if ( value >= 1 || value <= 12 ) {
31+
if ( value >= 1 && value <= 12 ) {
3232
return ( value < 10 ? "0" : "" ) + value;
3333
}
3434
},
@@ -52,7 +52,7 @@
5252

5353
function sixty( value ) {
5454
value = parseInt( value, 10 );
55-
if ( value >= 0 || value <= 59 ) {
55+
if ( value >= 0 && value <= 59 ) {
5656
return ( value < 10 ? "0" : "" ) + value;
5757
}
5858
}

0 commit comments

Comments
 (0)