Skip to content

Commit

Permalink
Fix trailing } in env vars in prompt parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Scriptim committed Jan 26, 2024
1 parent 79a6912 commit 864916e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/promptParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ export function parsePrompt(ps1: string, promptCommand: string): PromptElement[]
openCursor,
Math.min(10, variableName.length + 2),
);
} else {
// skip '}'
cursor += 1;
}

// skip '}'
cursor += 1;
}

elements.push(applyState(element, propertiesState));
Expand Down

0 comments on commit 864916e

Please sign in to comment.