Allowing for flags with '=' in them to register as flags. (#5579)

* hacky fix for registering flags with '='

* fmt
This commit is contained in:
pwygab 2022-05-19 00:26:58 +08:00 committed by GitHub
parent 2c58beec13
commit 6c56829976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}