Промежуточный коммит

This commit is contained in:
Book Pauk
2019-01-14 18:44:22 +07:00
parent 5532140c86
commit 085bcac0b1
6 changed files with 208 additions and 139 deletions

View File

@@ -12,7 +12,7 @@ class BookConverter {
if (fileType && (fileType.ext == 'html' || fileType.ext == 'xml')) {
const data = await fs.readFile(inputFile, 'utf8');
if (data.indexOf('FictionBook') >= 0) {
if (data.indexOf('<FictionBook') >= 0) {
await fs.writeFile(outputFile, data);
return;
}