From f76e53a52c4a095ad0a60f641ffb71b436baf265 Mon Sep 17 00:00:00 2001 From: Grzegorz Gidel Date: Wed, 19 Apr 2023 00:12:56 +0200 Subject: [PATCH] Fix reversed examples formatting condition when pinning enabled --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index bb4a13020..c210ef2fb 100644 --- a/public/script.js +++ b/public/script.js @@ -1484,7 +1484,7 @@ async function Generate(type, automatic_trigger, force_name2) { if (!storyString.endsWith('\n')) { storyString += '\n'; } - const replaceString = power_user.disable_examples_formatting ? `This is how ${name2} should talk` : ''; + const replaceString = power_user.disable_examples_formatting ? '' : `This is how ${name2} should talk`; example = example.replace(//i, replaceString); } storyString += appendToStoryString(example, '');