From 170e673a190ee2d2e03f4f027b8870c157e32d44 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Thu, 30 May 2024 12:24:45 +0900 Subject: [PATCH] refactor: Add 'slot' and 'position' to normalCBS list in highlight.ts --- src/ts/gui/highlight.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ts/gui/highlight.ts b/src/ts/gui/highlight.ts index 1ab35889..14e0c2b4 100644 --- a/src/ts/gui/highlight.ts +++ b/src/ts/gui/highlight.ts @@ -86,7 +86,7 @@ const normalCBS = [ 'chat_index', 'first_msg_index', 'blank', 'none', 'message_time', 'message_date', 'time', 'date', 'isotime', 'isodate', 'message_idle_duration', 'idle_duration', 'br', 'newline', 'model', 'axmodel', 'role', 'jbtoggled', 'random', 'maxcontext', 'lastmessage', 'lastmessageid', - 'lastmessageindex', 'emotionlist', 'assetlist', 'prefill_supported', 'unixtime', '/', '/if', '/each', '/pure', '/if_pure', + 'lastmessageindex', 'emotionlist', 'assetlist', 'prefill_supported', 'unixtime', '/', '/if', '/each', '/pure', '/if_pure', 'slot' ] const normalCBSwithParams = [ @@ -96,7 +96,7 @@ const normalCBSwithParams = [ 'previous_chat_log', 'tonumber', 'arrayelement', 'array_element', 'arrayshift', 'array_shift', 'arraypop', 'array_pop', 'arraypush', 'array_push', 'arraysplice', 'array_splice', 'makearray', 'array', 'a', 'make_array', 'history', 'messages', 'range', 'date', 'time', 'datetimeformat', 'date_time_format', - 'random', 'pick', 'roll', 'datetimeformat', 'hidden_key', 'reverse' + 'random', 'pick', 'roll', 'datetimeformat', 'hidden_key', 'reverse', 'getglobalvar', 'position', 'slot' ] const displayRelatedCBS = [