Skip to content

Commit

Permalink
fix: command delimiter to support pipelining
Browse files Browse the repository at this point in the history
Signed-off-by: Chapman Pendery <[email protected]>
  • Loading branch information
cpendery committed Dec 12, 2023
1 parent e8053ba commit 69ed32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type CommandToken = {
isPersistent?: boolean;
};

const cmdDelim = /(\|\|)|(&&)|(;)/;
const cmdDelim = /(\|\|)|(&&)|(;)|(\|)/;
const spaceRegex = /\s/;

export const parseCommand = (command: string): CommandToken[] => {
Expand Down

0 comments on commit 69ed32a

Please sign in to comment.