FIX: only replaces double quotes and uses unicode (#14644)

FIX: only replaces double quotes and uses unicode (#14644)

is actually not converted and doesn’t need to be normalised to '

diff --git a/app/assets/javascripts/discourse/app/components/quote-button.js b/app/assets/javascripts/discourse/app/components/quote-button.js
index 31c2640..40305a9 100644
--- a/app/assets/javascripts/discourse/app/components/quote-button.js
+++ b/app/assets/javascripts/discourse/app/components/quote-button.js
@@ -37,7 +37,9 @@ function getQuoteTitle(element) {
 }
 
 function fixQuotes(str) {
-  return str.replace(/„|“|«|»|”/g, '"').replace(/‘|’/g, "'");
+  // u+201c “
+  // u+201d ”
+  return str.replace(/[\u201C\u201D]/g, '"');
 }
 
 function regexSafeStr(str) {

GitHub sha: a5eba43a655253a89ce17e135a1bcc22e14796e8

This commit appears in #14644 which was approved by ZogStriP. It was merged by jjaffeux.