Skip to content

Commit

Permalink
datepicker: changed parseDate to be case insensitive. Fixed #6036 - d…
Browse files Browse the repository at this point in the history
…atepicker: parseDate is case sensitive.
  • Loading branch information
AndrewNewcomb authored and scottgonzalez committed Sep 9, 2010
1 parent 9a2dafa commit 590e03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ $.extend(Datepicker.prototype, {
var getName = function(match, shortNames, longNames) {
var names = (lookAhead(match) ? longNames : shortNames);
for (var i = 0; i < names.length; i++) {
if (value.substr(iValue, names[i].length) == names[i]) {
if (value.substr(iValue, names[i].length).toLowerCase() == names[i].toLowerCase()) {
iValue += names[i].length;
return i + 1;
}
Expand Down

0 comments on commit 590e03c

Please sign in to comment.