From 0f8fdae0e4fe7f3b00de7dfdfdbbb5b8f5ded415 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 13 Jan 2026 11:02:57 +0300 Subject: Enha: single backtick style --- tools.go | 1 + 1 file changed, 1 insertion(+) (limited to 'tools.go') diff --git a/tools.go b/tools.go index e5bdd1b..f36e240 100644 --- a/tools.go +++ b/tools.go @@ -24,6 +24,7 @@ var ( starRE = regexp.MustCompile(`(\*.*?\*)`) thinkRE = regexp.MustCompile(`(\s*([\s\S]*?))`) codeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`) + singleBacktickRE = regexp.MustCompile(`\x60([^\x60]*)\x60`) roleRE = regexp.MustCompile(`^(\w+):`) rpDefenitionSysMsg = ` For this roleplay immersion is at most importance. -- cgit v1.2.3