Fixed multiline titles

master
lanxu 2015-09-02 21:20:20 +03:00
parent 20cd127505
commit bb0d422263
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ module.exports = function(config) {
var match = re.exec(data);
if (match && match[2]) {
resolve(match[2].trim());
var title = match[2].trim(); // remove whitespace
title = title.replace(/\r?\n|\r/g, ''); // remove newlines
resolve(title);
} else {
reject();
}