Fixed multiline titles
This commit is contained in:
parent
20cd127505
commit
bb0d422263
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user