Skip to content

Commit f251164

Browse files
committed
Prevent infinite loop with invalid values
1 parent cd46d38 commit f251164

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/bootstrap-datepicker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,9 @@
768768
});
769769
val = $.inArray(filtered[0], dates[language].monthsShort) + 1;
770770
break;
771+
default:
772+
val = 0;
773+
break;
771774
}
772775
}
773776
parsed[part] = val;

0 commit comments

Comments
 (0)