Skip to content

Commit

Permalink
Fix variable in quoted string
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami committed Sep 29, 2024
1 parent 89c4910 commit 8cb48ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/deno_task_shell/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ fn parse_quoted_word(pair: Pair<Rule>) -> Result<WordPart> {
parts.push(WordPart::Command(command));
}
Rule::VARIABLE => {
parts.push(WordPart::Variable(part.as_str()[1..].to_string()))
parts.push(WordPart::Variable(part.as_str().to_string()))

Check warning on line 1510 in crates/deno_task_shell/src/parser.rs

View check run for this annotation

Codecov / codecov/patch

crates/deno_task_shell/src/parser.rs#L1510

Added line #L1510 was not covered by tests
}
Rule::QUOTED_CHAR => {
if let Some(WordPart::Text(ref mut s)) = parts.last_mut() {
Expand Down

0 comments on commit 8cb48ba

Please sign in to comment.