We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3587c2 commit e5f46b0Copy full SHA for e5f46b0
app/code/Magento/Catalog/Block/Product/View/Options/Type/Date.php
@@ -83,10 +83,7 @@ public function getCalendarDateHtml()
83
84
$dateFormat = $this->_localeDate->getDateFormat(\IntlDateFormatter::SHORT);
85
/** Escape RTL characters which are present in some locales and corrupt formatting */
86
- $patterns = [];
87
- $patterns[0] = '/[^[:print:]]/';
88
- $patterns[1] = '/[^MmDdYy\/\.\-]/';
89
- $escapedDateFormat = preg_replace($patterns, '', $dateFormat);
+ $escapedDateFormat = preg_replace('/[^MmDdYy\/\.\-]/', '', $dateFormat);
90
$calendar = $this->getLayout()->createBlock(
91
\Magento\Framework\View\Element\Html\Date::class
92
)->setId(
0 commit comments