mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Trailing space removal
This commit is contained in:
@@ -68,13 +68,13 @@ fn is_dangerous_to_call_with_exec(command: &[String]) -> bool {
|
||||
match cmd0 {
|
||||
Some(cmd) if cmd.ends_with("git") || cmd.ends_with("/git") => {
|
||||
matches!(
|
||||
command.get(1).map(String::as_str),
|
||||
command.get(1).map(String::as_str),
|
||||
Some("reset" | "rm" | "--force")
|
||||
)
|
||||
}
|
||||
|
||||
Some("rm") => matches!(
|
||||
command.get(1).map(String::as_str),
|
||||
command.get(1).map(String::as_str),
|
||||
Some("-f" | "-rf" | "-Rf" | "-fr" | "-fR" | "--force")
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user