减少空格对答题的干扰

This commit is contained in:
johlanse 2022-09-01 10:08:58 +08:00
parent ba767ad611
commit f2dfb8421e
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ func (c *Core) RespondDaily(user *model.User, model string) {
for _, option := range options {
for _, tip := range tips {
if strings.Contains(option, tip) {
if strings.Contains(strings.ReplaceAll(option, " ", ""), strings.ReplaceAll(tip, " ", "")) {
answer = append(answer, option)
}
}