| 95 | // Script applies to Generate and input is Generate | 95 | // Script applies to Generate and input is Generate |
| 96 | (script.promptOnly && isPrompt) || | 96 | (script.promptOnly && isPrompt) || |
| 97 | // Script applies to all cases when neither "only"s are true, but there's no need to do it when `isMarkdown`, the as source (chat history) should already be changed beforehand | 97 | // Script applies to all cases when neither "only"s are true, but there's no need to do it when `isMarkdown`, the as source (chat history) should already be changed beforehand |
| 98 | (!script.markdownOnly && !script.promptOnly && !isMarkdown) | 98 | (!script.markdownOnly && !script.promptOnly && !isMarkdown && !isPrompt) |
| 99 | ) { | 99 | ) { |
| 100 | if (isEdit && !script.runOnEdit) { | 100 | if (isEdit && !script.runOnEdit) { |
| 101 | console.debug(`getRegexedString: Skipping script ${script.scriptName} because it does not run on edit`); | 101 | console.debug(`getRegexedString: Skipping script ${script.scriptName} because it does not run on edit`); |