mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Regex is a method that is commonly used to find and replace parts of a string using a single pattern. Add support for using regex in SillyTavern which allows users to dynamically change various aspects of the chatting experience. Users are able to choose where a given regex script should apply (both invasive and non-invasive options!). Invasive options alter chat history while non-invasive alters markdown display for the entire chat. A new variable called {{match}} is added in regex scripts which substitutes in the found match from the original find regex script. There is a lot more that can be added to this extension, but for now, this is enough. Signed-off-by: kingbri <bdashore3@proton.me>
13 lines
439 B
HTML
13 lines
439 B
HTML
<div class="regex-script-label flex-container flex-grow">
|
|
<!-- NOTE: Overflow needs to be handled here! -->
|
|
<div class="regex_script_name flex-grow"></div>
|
|
<div class="flex-container">
|
|
<div class="edit_existing_regex menu_button">
|
|
<i class="fa-solid fa-pencil"></i>
|
|
</div>
|
|
<div class="delete_regex menu_button">
|
|
<i class="fa-solid fa-trash"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|