From f311da9623aa75cbe2496a1363c7a22ac4a31717 Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Tue, 10 May 2022 19:13:19 +0800 Subject: [PATCH] Adds fix for when multiple flags are in one line. (#5493) --- crates/nu-parser/src/deparse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();