mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-14 12:27:29 +08:00
normalize-policy phase-4: remove extra trim/lower from language/trigger/context handling
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"encoding/json"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
@@ -79,7 +78,7 @@ func (ta *triggerAudit) Record(trigger, channel, session string, suppressed bool
|
||||
}
|
||||
|
||||
func normalizeTrigger(v string) string {
|
||||
s := strings.ToLower(strings.TrimSpace(v))
|
||||
s := v
|
||||
if s == "" {
|
||||
return "user"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user