mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Simplify regex
This commit is contained in:
		@@ -2550,7 +2550,7 @@ async function getPrompt(generationType, message, trigger, quietPrompt, combineN
 | 
			
		||||
 */
 | 
			
		||||
function generateFreeModePrompt(trigger, combineNegatives) {
 | 
			
		||||
    return trigger
 | 
			
		||||
        .replace(/^char(\s|,)|\{\{charPrefix}}/gi, (_, suffix) => {
 | 
			
		||||
        .replace(/^char(\s|,)|{{charPrefix}}/gi, (_, suffix) => {
 | 
			
		||||
            const getLastCharacterKey = () => {
 | 
			
		||||
                if (typeof this_chid !== 'undefined') {
 | 
			
		||||
                    return getCharaFilename(this_chid);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user