


























strip UTF-8 BOM when reading SKILL.md in quick_validate (#93811)
The previous `read_text(encoding="utf-8")` call left the UTF-8 byte order mark (EF BB BF, three bytes) in the content string if the file was saved by a tool that emits a BOM. The first line check (`lines[0].strip() != "---"`) then saw "\ufeff---" and rejected the file as "Invalid frontmatter format", even though the document was otherwise valid frontmatter. Co-authored-by: Zo Bot <github-automation@zo.computer>1 file changed
Lines changed: 1 addition & 1 deletion
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。