mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
If the extension is disabled, don't use any regex formatting. In addition, wrap all foreach logic into its own function which reduces the size of all regex injections. This commit also removes the need for working around static imports as UI is separate from the engine and is therefore imported at the same time as other non-static extensions. Signed-off-by: kingbri <bdashore3@proton.me>