mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
adding trim to link titles to remove annoying whitespace
This commit is contained in:
parent
133f04462e
commit
1ab10dcb04
@ -16,7 +16,7 @@ var link = function(dbot) {
|
||||
body = body.replace(/(\r\n|\n\r|\n)/gm, " ");
|
||||
var title = body.valMatch(/<title>(.*)<\/title>/, 2);
|
||||
if(title && title.length < 140) {
|
||||
event.reply(ent.decode(title[1]));
|
||||
event.reply(ent.decode(title[1]).trim());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user