Skip to content

fix(config): allow spaces in macOS preference keys#53

Merged
fullstackjam merged 1 commit intoopenbootdotdev:mainfrom
jerryjrxie:fix/macos-pref-key-spaces
May 5, 2026
Merged

fix(config): allow spaces in macOS preference keys#53
fullstackjam merged 1 commit intoopenbootdotdev:mainfrom
jerryjrxie:fix/macos-pref-key-spaces

Conversation

@jerryjrxie
Copy link
Copy Markdown
Contributor

Keys like NSStatusItem Visible Sound are valid macOS defaults but were rejected by the validator regex.

Keys like "NSStatusItem Visible Sound" are valid macOS defaults.
@github-actions github-actions Bot added the tests Tests only label May 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

👋 Thanks for opening this pull request!

Before merging:

  • Code follows existing patterns in the codebase
  • go build ./... and go vet ./... pass
  • Commit message is clear and descriptive

@fullstackjam will review this soon. Thanks for contributing! 🚀

@fullstackjam fullstackjam merged commit 1b7e090 into openbootdotdev:main May 5, 2026
9 checks passed
fullstackjam added a commit that referenced this pull request May 5, 2026
)

Spaces are valid in macOS preference keys (e.g. "NSStatusItem Visible Sound")
but not in domains. The shared domainKeyRe introduced in #53 allowed spaces
in both. Split into domainRe (no spaces) and keyRe (spaces allowed), and
restore the domain-with-space test case that was inadvertently dropped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants