don't escape formatting characters in urls
This commit is contained in:
parent
a894530cb0
commit
21e7b5eb44
@ -73,7 +73,7 @@ module.exports = class {
|
||||
const mapped_username = `${event.type == "minetest" ? "" : "@" + event.name}`;
|
||||
// escape formatting characters
|
||||
const escaped_username = event.username.replace(/([*_`~|])/g, "\\$1");
|
||||
const escaped_message = event.message.replace(/([*_`~|])/g, "\\$1");
|
||||
const escaped_message = event.message.replace(/(?<!https?:\/\/\S*)([*_`~|])/g, "\\$1");
|
||||
|
||||
if (event.message_type == "me"){
|
||||
// me message
|
||||
|
Loading…
x
Reference in New Issue
Block a user