Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Commit

Permalink
correct regex
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpatters0n committed Sep 30, 2015
1 parent bdfe5f9 commit 8787091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bootstrap-datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@
return {separators: separators, parts: parts};
},
parseDate: function (date, format, language, type) {
if (!(/^(\d+-?|\d+\/?)+\d.*/).test(date)) {
if (!(/^(\d+-?|\d+\/?|.)+\d.*/).test(date)) {
date = new Date;
}
if (date instanceof Date) {
Expand Down

0 comments on commit 8787091

Please sign in to comment.