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

fix range semantic in detect_columns, str substring, str index-of #12894

Merged
merged 1 commit into from
May 22, 2024

Conversation

WindSoilder
Copy link
Collaborator

Description

Fixes: #7761

It's still unsure if we want to change the range semantic itself, but it's good to keep range semantic consistent between nushell commands.

User-Facing Changes

Before

 "abc" | str substring 1..=2
b

After

 "abc" | str substring 1..=2
bc

Tests + Formatting

Adjust tests to fit new behavior

@sholderbach sholderbach added pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes pr:commands This PR changes our commands in some way labels May 19, 2024
@kubouch
Copy link
Contributor

kubouch commented May 22, 2024

Seems good. Let's land this and we can discuss the range semantics further.

@kubouch kubouch merged commit ac4125f into nushell:main May 22, 2024
15 checks passed
@WindSoilder WindSoilder deleted the command_range branch May 23, 2024 02:57
@hustcer hustcer added this to the v0.94.0 milestone May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes pr:commands This PR changes our commands in some way
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ranges and str substring are inconsistent (off by 1)
4 participants