correction to reg exp
parent
d13585197e
commit
0910c5c18f
|
@ -83,7 +83,7 @@ module.exports = {
|
||||||
// removes inline links and refs
|
// removes inline links and refs
|
||||||
if (!links) {
|
if (!links) {
|
||||||
data = data.replaceAll(/([^!])\[\[?([^\]]+\]?)\]\([^\)]+\)/g, '$1$2');
|
data = data.replaceAll(/([^!])\[\[?([^\]]+\]?)\]\([^\)]+\)/g, '$1$2');
|
||||||
data = data.replaceAll(/\\\[([^\\]+)\\\]/g, '[$1]');
|
data = data.replaceAll(/[\\\[]+([0-9]+)[\\\]]+/g, '[$1]');
|
||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
|
Loading…
Reference in New Issue