Skip to content

Commit 5152e5d

Browse files
Dev Agentcsg-pr-bot
authored andcommitted
Fix SKILL.md validate bug
1 parent 78fa119 commit 5152e5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

component/checker/skill_file_checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (c *SkillFileChecker) Check(ctx context.Context, req types.GitalyAllowedReq
6969
}
7070

7171
// Check if SKILL.md is in the correct YAML format with name and description
72-
pattern := `^---\s*\nname:\s*.+\s*\ndescription:\s*.+\s*---$`
72+
pattern := `^---\s*\nname:\s*.+\s*\ndescription:\s*.+\s*---*.`
7373
matched, err := regexp.MatchString(pattern, skillsContent)
7474
if err != nil {
7575
return false, fmt.Errorf("failed to check SKILL.md format: %w", err)

0 commit comments

Comments
 (0)