Simplify regex
| @@ -2550,7 +2550,7 @@ async function getPrompt(generationType, message, trigger, quietPrompt, combineN | ||
| 2550 | 2550 | */ |
| 2551 | 2551 | function generateFreeModePrompt(trigger, combineNegatives) { |
| 2552 | 2552 | return trigger |
| 2553 | 2553 | .replace(/^char(\s|,)|\{\{charPrefix}}/gi, (_, suffix) => { |
| 2554 | 2554 | const getLastCharacterKey = () => { |
| 2555 | 2555 | if (typeof this_chid !== 'undefined') { |
| 2556 | 2556 | return getCharaFilename(this_chid); |