Skip to content

fix hash quoting and add tests - #18258

Merged
fdncred merged 3 commits into
nushell:mainfrom
fdncred:fix_hash_quoting_20260520
May 20, 2026
Merged

fdncred merged 3 commits into
nushell:mainfrom
fdncred:fix_hash_quoting_20260520

Conversation

@fdncred

@fdncred fdncred commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR fixes a problem with to nuon --raw-strings where if the string began with # the right number of r# wasn't created.

User-facing changes (Release notes)

Fixed hash-quoting

Fix the raw string prefix and suffix in certain situations.

Before

 open -r foo.toml | to nuon --raw-strings
r#'# example.toml
name = "my-app"
version = "1.0.0"
'#

After

 open -r foo.toml | to nuon --raw-strings
r##'# example.toml
name = "my-app"
version = "1.0.0"
'##

Additional notes

@fdncred fdncred added notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels May 20, 2026
@fdncred
fdncred merged commit 124d39e into nushell:main May 20, 2026
17 checks passed
@fdncred
fdncred deleted the fix_hash_quoting_20260520 branch May 20, 2026 13:31
@github-actions github-actions Bot added this to the v0.113.0 milestone May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant