Merge branch 'release/0.7.8b'

This commit is contained in:
Book Pauk
2019-11-25 16:00:00 +07:00
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ export const versionHistory = [
` `
<ul> <ul>
<li>улучшение html-фильтров для сайтов</li> <li>улучшение html-фильтров для сайтов</li>
<li>исправления багов</li>
</ul> </ul>
` `
}, },

View File

@@ -23,7 +23,7 @@ class ConvertFb2 extends ConvertBase {
const right = data.indexOf('?>', left); const right = data.indexOf('?>', left);
if (right >= 0) { if (right >= 0) {
const head = data.slice(left, right + 2).toString(); const head = data.slice(left, right + 2).toString();
const m = head.match(/encoding="(.*)"/); const m = head.match(/encoding="(.*?)"/);
if (m) { if (m) {
let encoding = m[1].toLowerCase(); let encoding = m[1].toLowerCase();
if (encoding != 'utf-8') { if (encoding != 'utf-8') {