Skip to content

Commit 4b1bda5

Browse files
authored
Merge pull request #2 from camera-2018/feat/neo-skill-self-iteration
Feat/neo skill self iteration
2 parents 1ebc207 + 18114ea commit 4b1bda5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

astrbot/core/skills/neo_skill_sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def _ensure_skill_frontmatter(markdown: str, *, skill_name: str, skill_key: str)
9595
frontmatter, body = _parse_frontmatter(markdown)
9696

9797
name = frontmatter.get("name") or skill_name
98+
name = " ".join(str(name).split())
9899
description = frontmatter.get("description") or _derive_description(body)
99100
if not description:
100101
description = f"Synced skill for `{skill_key}`."

0 commit comments

Comments
 (0)