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

This commit is contained in:
Book Pauk
2019-10-20 18:09:24 +07:00
parent 631990e3bb
commit 5d18c9371d

View File

@@ -59,7 +59,7 @@ class ConvertSites extends ConvertHtml {
cutter(text, opts) {
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);
if (l < 0 || r < 0 || r <= l)
return false;