From 53a64f16ae32a2c96524f78c07d99a73b42bf382 Mon Sep 17 00:00:00 2001 From: Tim <27028176+twiescha@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:05:19 +0100 Subject: [PATCH] fix(escapeDiceMod): disabling option is not preventing evaluation anymore (#266) --- src/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.ts b/src/main.ts index 9242b27..c9932fa 100644 --- a/src/main.ts +++ b/src/main.ts @@ -458,6 +458,14 @@ export default class DiceRollerPlugin extends Plugin { rep.replace(/([\*\[\]])/g, "\\$1") ) .split("\n"); + } else { + splitContent = splitContent + .join("\n") + .replace( + `\`${full}\``, + rep + ) + .split("\n"); } fileContent.splice(