diff --git a/crates/nu-parser/src/deparse.rs b/crates/nu-parser/src/deparse.rs index 4cc26c96d9..1b4ffbd8ed 100644 --- a/crates/nu-parser/src/deparse.rs +++ b/crates/nu-parser/src/deparse.rs @@ -94,8 +94,8 @@ pub fn escape_quote_string_with_file(input: &str, file: &str) -> String { } } } - if word == input { - return word; + if word.contains(input) { + return input.to_string(); } } let mut final_word = String::new();