Skip to content

Commit

Permalink
fix(escapeDiceMod): disabling option is not preventing evaluation any…
Browse files Browse the repository at this point in the history
…more (#266)
  • Loading branch information
twiescha authored Nov 1, 2023
1 parent 5c031cf commit 53a64f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 53a64f1

Please sign in to comment.