This commit is contained in:
Daniel Odendahl Jr
2019-02-21 18:17:57 +00:00
parent bca98f154f
commit 695fdf9d0f
+1 -1
View File
@@ -50,6 +50,6 @@ module.exports = class NASACommand extends Command {
return text
.replace(/<\/?b>/g, '**')
.replace(/<\/?i>/g, '*')
.replace(/<a href="(.+)"(?: rel="nofollow">)?(.+)<\/a>/g, '[$2]($1)');
.replace(/<a href="(.+)"(?: rel="nofollow">)?([^<>]+)<\/a>/g, '[$2]($1)');
}
};