Skip to content

Commit

Permalink
fix: fix the command filter of line parser (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
YiNNx authored Sep 2, 2024
1 parent a4e42d2 commit 75d10ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Command {
let args: Vec<_> = command.split_whitespace().map(String::from).collect();
let c = args
.iter()
.find(|s| !s.is_empty() || !s.contains('=') && !s.contains('{'))
.find(|s| !s.is_empty() && !s.contains('=') && !s.contains('{'))
.ok_or("invalid command")?;
c.clone_into(&mut self.command);
self.arguments = args;
Expand Down

0 comments on commit 75d10ed

Please sign in to comment.