Skip to content

Commit 590e03c

Browse files
AndrewNewcombscottgonzalez
authored andcommitted
datepicker: changed parseDate to be case insensitive. Fixed #6036 - datepicker: parseDate is case sensitive.
1 parent 9a2dafa commit 590e03c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ $.extend(Datepicker.prototype, {
982982
var getName = function(match, shortNames, longNames) {
983983
var names = (lookAhead(match) ? longNames : shortNames);
984984
for (var i = 0; i < names.length; i++) {
985-
if (value.substr(iValue, names[i].length) == names[i]) {
985+
if (value.substr(iValue, names[i].length).toLowerCase() == names[i].toLowerCase()) {
986986
iValue += names[i].length;
987987
return i + 1;
988988
}

0 commit comments

Comments
 (0)