Skip to content

Add ObjectPrefixKey wildcard matching for JBFL patterns#185

Merged
webdevred merged 4 commits intomasterfrom
object-prefix-key-matching
Apr 1, 2026
Merged

Add ObjectPrefixKey wildcard matching for JBFL patterns#185
webdevred merged 4 commits intomasterfrom
object-prefix-key-matching

Conversation

@webdevred
Copy link
Copy Markdown
Owner

Summary

  • Adds ObjectPrefixKey constructor to NodeSelector so JBFL patterns like .deformGroups_oilPan* can target object keys by prefix
  • Wires up compareSB in NodeCursor.hs to handle prefix matching via T.isPrefixOf, so wildcard patterns actually match during formatting
  • Parses trailing * in JBFL object key selectors as ObjectPrefixKey in the DSL parser

- Add ObjectPrefixKey constructor to NodeSelector
- Add ObjectPrefixKey case to compareSB using T.isPrefixOf so JBFL
  wildcard patterns (e.g. `.foo*`) actually match during formatting
- Parse trailing `*` in object keys as ObjectPrefixKey in DSL.hs
@webdevred webdevred merged commit d9b26c6 into master Apr 1, 2026
12 checks passed
@webdevred webdevred deleted the object-prefix-key-matching branch April 1, 2026 17:10
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