Skip to content

fix: handle array frontmatter values in selector matching#213

Merged
nettapper merged 4 commits intokitproj:mainfrom
nettapper:fix-array-selectors
Apr 6, 2026
Merged

fix: handle array frontmatter values in selector matching#213
nettapper merged 4 commits intokitproj:mainfrom
nettapper:fix-array-selectors

Conversation

@nettapper
Copy link
Copy Markdown
Collaborator

MatchesIncludes used fmt.Sprint on frontmatter values, converting YAML arrays like languages: [nodejs] to the string "[nodejs]" which never matched any selector.
Array values are now expanded element-by-element before comparison.

Also adds unit and integration tests to ensure a regression is prevented in the future.

@nettapper nettapper merged commit 73e2851 into kitproj:main Apr 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants