Enha: change __known_by_char tag to @

This commit is contained in:
Grail Finder
2026-02-09 09:44:54 +03:00
parent 77ad2a7e7e
commit 5e7ddea682
7 changed files with 62 additions and 64 deletions

6
bot.go
View File

@@ -76,10 +76,10 @@ func parseKnownToTag(content string) []string {
}
tag := cfg.CharSpecificContextTag
if tag == "" {
tag = "__known_to_chars__"
tag = "@"
}
// Pattern: tag + list + "__"
pattern := regexp.QuoteMeta(tag) + `(.*?)__`
// Pattern: tag + list + "@"
pattern := regexp.QuoteMeta(tag) + `(.*?)@`
re := regexp.MustCompile(pattern)
matches := re.FindAllStringSubmatch(content, -1)
if len(matches) == 0 {