mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Regex: Fix markdown formatting bug
The regex would still run even if markdown formatting is disabled, but a placement is selected. Fix that by adding an extra check in the loop. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -46,7 +46,7 @@ function getRegexedString(rawString, placement, { characterOverride, isMarkdown
|
||||
}
|
||||
|
||||
extension_settings.regex.forEach((script) => {
|
||||
if (script.markdownOnly && !isMarkdown) {
|
||||
if ((script.markdownOnly && !isMarkdown) || (!script.markdownOnly && isMarkdown)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user