forked from extern/nushell
Allowing for flags with '=' in them to register as flags. (#5579)
* hacky fix for registering flags with '=' * fmt
This commit is contained in:
parent
2c58beec13
commit
6c56829976
@ -94,7 +94,10 @@ pub fn escape_quote_string_with_file(input: &str, file: &str) -> String {
|
||||
}
|
||||
}
|
||||
}
|
||||
if word.contains(input) {
|
||||
if word.contains(input) || {
|
||||
let s: Vec<&str> = input.split('=').collect();
|
||||
word.contains(s[0])
|
||||
} {
|
||||
return input.to_string();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user