Skip to content

Commit a150d24

Browse files
author
Anton Evers
committed
Don't only replace \' but also \" with ' and "
1 parent 0548157 commit a150d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Translation/Model/Js/DataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function getPhrases($content)
139139
if ($result) {
140140
if (isset($matches[2])) {
141141
foreach ($matches[2] as $match) {
142-
$phrases[] = str_replace('\\\'', '\'', $match);
142+
$phrases[] = str_replace(["\'", '\"'], ["'", '"'], $match);
143143
}
144144
}
145145
}

0 commit comments

Comments
 (0)