diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-09 09:44:54 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-09 09:44:54 +0300 |
| commit | 5e7ddea6827765ac56155577cf7dcc809fe1128c (patch) | |
| tree | fd22ed79772a81ea51ce2c230a594af2ba13af69 /bot.go | |
| parent | 77ad2a7e7e2c3bade4d949d8eb5c36e0126f4668 (diff) | |
Enha: change __known_by_char tag to @
Diffstat (limited to 'bot.go')
| -rw-r--r-- | bot.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |
