Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ASCII restriction from sublevel names #112

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vweevers
Copy link
Member

@vweevers vweevers commented Jan 5, 2025

Closes: #70

@vweevers vweevers mentioned this pull request Jan 5, 2025

The optional `options` object may contain:

- `separator` (string, default: `'!'`): Character for separating sublevel names from user keys and each other. Must sort before characters used in `name`. An error will be thrown if that's not the case.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must sort before characters used in name

Hm this is still true, because otherwise nested sublevels don't sort correctly. I should add a test for that scenario, and then restore the LEVEL_INVALID_PREFIX check (but more relaxed, only for the low bytes).

@vweevers vweevers marked this pull request as draft January 5, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

allow for non-ASCII names when creating an AbstractSublevel
1 participant