From da42d0a47a1a2ca8206ebb95cf408596973fd421 Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Sat, 23 Nov 2024 19:39:02 +0200
Subject: [PATCH] Add 3-state find substitution select Fixes #3104
---
public/scripts/char-data.js | 2 +-
public/scripts/extensions/regex/editor.html | 10 ++++++---
public/scripts/extensions/regex/engine.js | 23 ++++++++++++++++++---
public/scripts/extensions/regex/index.js | 8 +++----
4 files changed, 32 insertions(+), 11 deletions(-)
diff --git a/public/scripts/char-data.js b/public/scripts/char-data.js
index 378c19ca3..5859331f6 100644
--- a/public/scripts/char-data.js
+++ b/public/scripts/char-data.js
@@ -89,7 +89,7 @@
* @property {boolean} markdownOnly - Whether the script only applies to Markdown
* @property {boolean} promptOnly - Whether the script only applies to prompts
* @property {boolean} runOnEdit - Whether the script runs on edit
-* @property {boolean} substituteRegex - Whether the regex should be substituted
+* @property {number} substituteRegex - Whether the regex should be substituted
* @property {number} minDepth - The minimum depth
* @property {number} maxDepth - The maximum depth
*/
diff --git a/public/scripts/extensions/regex/editor.html b/public/scripts/extensions/regex/editor.html
index 6b2e760f7..9e699a622 100644
--- a/public/scripts/extensions/regex/editor.html
+++ b/public/scripts/extensions/regex/editor.html
@@ -121,12 +121,16 @@
Run On Edit
-