mirror of https://github.com/ElemeFE/element
DatePicker: fix format shows error
parent
8ab1db83c5
commit
ebd48666b2
|
@ -283,7 +283,7 @@ export const extractDateFormat = function(format) {
|
|||
|
||||
export const extractTimeFormat = function(format) {
|
||||
return format
|
||||
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
||||
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}?\W|\W?M{1,4}|\W?y{2,4}/g, '')
|
||||
.trim();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue