Skip to content

Allow dashes in experimental option identifiers#16093

Merged
Bahex merged 1 commit intonushell:mainfrom
cptpiepmatz:fix/allow-dashes-in-experimental-options
Jul 2, 2025
Merged

Allow dashes in experimental option identifiers#16093
Bahex merged 1 commit intonushell:mainfrom
cptpiepmatz:fix/allow-dashes-in-experimental-options

Conversation

@cptpiepmatz
Copy link
Copy Markdown
Member

Description

In #16028 I also added a test to check that identifiers are valid to ensure that we have consistency there. But I only checked for alphanumeric strings as identifiers. It doesn't allow underscores or dashes. @Bahex used in his PR about #15682 a dash to separate words. So expanded the test to allow that.

User-Facing Changes

None.

Tests + Formatting

The assert_identifiers_are_valid now allows dashes.

After Submitting

The tests in #15682 should work then.

@cptpiepmatz cptpiepmatz requested a review from Bahex July 2, 2025 10:23
@Bahex Bahex merged commit 105ec0c into nushell:main Jul 2, 2025
15 of 16 checks passed
@github-actions github-actions bot added this to the v0.106.0 milestone Jul 2, 2025
@cptpiepmatz cptpiepmatz deleted the fix/allow-dashes-in-experimental-options branch July 2, 2025 10:44
mkatychev pushed a commit to mkatychev/nushell that referenced this pull request Jul 2, 2025
# Description

In nushell#16028 I also added a test to check that identifiers are valid to
ensure that we have consistency there. But I only checked for
alphanumeric strings as identifiers. It doesn't allow underscores or
dashes. @Bahex used in his PR about nushell#15682 a dash to separate words. So
expanded the test to allow that.

# User-Facing Changes

None.

# Tests + Formatting

The `assert_identifiers_are_valid` now allows dashes.

# After Submitting

The tests in nushell#15682 should work then.
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