File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
app/code/Magento/Ui/Component/Listing/Columns Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,6 @@ public function prepare()
114
114
];
115
115
if (!isset ($ config ['dateFormat ' ])) {
116
116
$ config ['dateFormat ' ] = $ this ->timezone ->getDateTimeFormat (\IntlDateFormatter::MEDIUM );
117
- if ($ config ['storeLocale ' ] == 'fr_CA ' || $ config ['storeLocale ' ] == 'pt_BR ' ) {
118
- $ config ['dateFormat ' ] = preg_replace ("/([^']*)'([^']+)'([^']*)/ " , '$1[$2]$3 ' , $ config ['dateFormat ' ]);
119
- }
120
117
}
121
118
$ this ->setData ('config ' , $ config );
122
119
Original file line number Diff line number Diff line change @@ -93,8 +93,12 @@ define([
93
93
var result = mageFormat ;
94
94
95
95
_ . each ( map , function ( moment , mage ) {
96
- result = result . replace ( mage , moment ) ;
96
+ result = result . replace (
97
+ new RegExp ( `${ mage } (?=([^']*'[^']*')*[^']*$)` ) ,
98
+ moment
99
+ ) ;
97
100
} ) ;
101
+ result = result . replace ( / ' ( .* ?) ' / g, '[$1]' ) ;
98
102
99
103
return result ;
100
104
} ,
You can’t perform that action at this time.
0 commit comments