mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 13:26:01 +02:00
fix: filename quoting # and update and unify surf dependency (#3524)
* fix: filenames with '#' don't get quoted #3496 * updating and unifying dependency surf * adding hyper-client Co-authored-by: ahkrr <alexhk@protonmail.com>
This commit is contained in:
@ -138,7 +138,7 @@ fn requote(orig_value: String) -> String {
|
||||
let mut quotes = vec!['"', '\'', '`'];
|
||||
let mut should_quote = false;
|
||||
for c in value.chars() {
|
||||
if c.is_whitespace() {
|
||||
if c.is_whitespace() || c == '#' {
|
||||
should_quote = true;
|
||||
} else if let Some(index) = quotes.iter().position(|q| *q == c) {
|
||||
should_quote = true;
|
||||
|
Reference in New Issue
Block a user