Fixed multiline titles

This commit is contained in:
lanxu 2015-09-02 21:20:20 +03:00
parent 20cd127505
commit bb0d422263

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();
}