Procházet zdrojové kódy

Мелкий рефакоринг

Book Pauk před 2 roky
rodič
revize
46b69059e8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      server/core/fb2/Fb2Parser.js

+ 1 - 1
server/core/fb2/Fb2Parser.js

@@ -283,7 +283,7 @@ class Fb2Parser extends XmlParser {
         };
 
         for (const [tag, s] of Object.entries(substs)) {
-            const r = new RegExp(`${tag}`, 'g');
+            const r = new RegExp(tag, 'g');
             xmlString = xmlString.replace(r, s);
         }