Skip to content

Commit e09f7dc

Browse files
Dev AgentRader
authored andcommitted
Fix SKILL.md validate bug
1 parent 78fa119 commit e09f7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)