From 9e50ff34c99e3d405897e2df0d13fb19a01047dd Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:21:07 +0300 Subject: [PATCH] Make Run on edit actually work Fixes #2958 --- public/script.js | 5 ++++- public/scripts/extensions/regex/editor.html | 2 +- public/scripts/extensions/regex/engine.js | 9 +++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/public/script.js b/public/script.js index 2e5fca74d..8fc833666 100644 --- a/public/script.js +++ b/public/script.js @@ -6798,7 +6798,10 @@ function updateMessage(div) { text = getRegexedString( text, regexPlacement, - { characterOverride: mes.extra?.type === 'narrator' ? undefined : mes.name }, + { + characterOverride: mes.extra?.type === 'narrator' ? undefined : mes.name, + isEdit: true, + }, ); diff --git a/public/scripts/extensions/regex/editor.html b/public/scripts/extensions/regex/editor.html index aa207ffd9..e9603bd7d 100644 --- a/public/scripts/extensions/regex/editor.html +++ b/public/scripts/extensions/regex/editor.html @@ -117,7 +117,7 @@ Disabled -