Forráskód Böngészése

Мелкая поправка

Book Pauk 5 éve
szülő
commit
5d18c9371d
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      server/core/BookConverter/ConvertSites.js

+ 1 - 1
server/core/BookConverter/ConvertSites.js

@@ -59,7 +59,7 @@ class ConvertSites extends ConvertHtml {
 
 
     cutter(text, opts) {
     cutter(text, opts) {
         const title = this.getTitle(text);
         const title = this.getTitle(text);
-        const l = text.indexOf(opts.begin);
+        const l = text.indexOf(opts.begin) + opts.begin.length;
         const r = text.indexOf(opts.end);
         const r = text.indexOf(opts.end);
         if (l < 0 || r < 0 || r <= l)
         if (l < 0 || r < 0 || r <= l)
             return false;
             return false;