Skip to content

Commit 90d64f3

Browse files
committed
Update js/bootstrap-datepicker.js
support unicode date format
1 parent 61c6a2a commit 90d64f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/bootstrap-datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@
789789
return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month]
790790
},
791791
validParts: /dd?|mm?|MM?|yy(?:yy)?/g,
792-
nonpunctuation: /[^ -\/:-@\[-`{-~\t\n\r]+/g,
792+
nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,
793793
parseFormat: function(format){
794794
// IE treats \0 as a string end in inputs (truncating the value),
795795
// so it's a bad format delimiter, anyway

0 commit comments

Comments
 (0)