correction to reg exp

main
Lee Hanken 2022-04-02 14:16:55 +01:00
parent d13585197e
commit 0910c5c18f
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ module.exports = {
// removes inline links and refs
if (!links) {
data = data.replaceAll(/([^!])\[\[?([^\]]+\]?)\]\([^\)]+\)/g, '$1$2');
data = data.replaceAll(/\\\[([^\\]+)\\\]/g, '[$1]');
data = data.replaceAll(/[\\\[]+([0-9]+)[\\\]]+/g, '[$1]');
}
return data;