mirror of
https://github.com/blader/humanizer.git
synced 2026-10-02 05:44:34 +08:00
Merge pull request #258
This commit is contained in:
@@ -27,7 +27,7 @@ yaml_metadata = require_match(
|
||||
"SKILL.md must begin with YAML metadata",
|
||||
).group(1)
|
||||
|
||||
for unsupported_field in ("compatibility:", "allowed-tools:"):
|
||||
for unsupported_field in ("version:", "compatibility:", "allowed-tools:"):
|
||||
if re.search(rf"(?m)^{re.escape(unsupported_field)}", yaml_metadata):
|
||||
raise SystemExit(f"Remove unsupported YAML field: {unsupported_field[:-1]}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user