This commit is contained in:
Daniel Odendahl Jr
2019-02-21 18:21:31 +00:00
parent 695fdf9d0f
commit a793bd9318
+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="https?:\/\/([^ ]+)" rel="nofollow">([^<>]+)<\/a>/g, '[$2]($1)');
}
};