diff options
-rwxr-xr-x | upd8.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js index 8dff388e..fefc1874 100755 --- a/upd8.js +++ b/upd8.js @@ -835,7 +835,7 @@ const replacerSpec = { if (error) process.exit(); const categoryPart = Object.keys(replacerSpec).join('|'); - transformInline.regexp = new RegExp(String.raw`\[\[((${categoryPart}):)?(.+?)((?<! )#.+?)?(\|(.+?))?\]\]`, 'g'); + transformInline.regexp = new RegExp(String.raw`(?<!\\)\[\[((${categoryPart}):)?(.+?)((?<! )#.+?)?(\|(.+?))?\]\]`, 'g'); } function transformInline(text, {strings, to}) { @@ -884,7 +884,7 @@ function transformInline(text, {strings, to}) { logError`The link ${match} failed to be processed: ${error}`; return match; } - }); + }).replaceAll(String.raw`\[[`, '[['); } function parseAttributes(string, {to}) { |