Skip to content

fix: handle array frontmatter values in selector matching#213

Open
nettapper wants to merge 4 commits intokitproj:mainfrom
nettapper:fix-array-selectors
Open

fix: handle array frontmatter values in selector matching#213
nettapper wants to merge 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.

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.

1 participant