mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-26 11:12:03 +00:00
fix(slack): split csv mention pattern fallback
This commit is contained in:
parent
4966268764
commit
441bd6d8db
2 changed files with 11 additions and 3 deletions
|
|
@ -3838,9 +3838,7 @@ class SlackAdapter(BasePlatformAdapter):
|
|||
import json as _json
|
||||
patterns = _json.loads(raw)
|
||||
except Exception:
|
||||
patterns = [p.strip() for p in raw.splitlines() if p.strip()] or [
|
||||
p.strip() for p in raw.split(",") if p.strip()
|
||||
]
|
||||
patterns = [p.strip() for p in raw.replace("\n", ",").split(",") if p.strip()]
|
||||
|
||||
if isinstance(patterns, str):
|
||||
patterns = [patterns]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue