Skip to content

Commit

Permalink
Merge pull request microsoft#210776 from microsoft/tyriar/210773
Browse files Browse the repository at this point in the history
Make bash window prompt adjuster more strict
  • Loading branch information
Tyriar authored and sergioengineer committed Apr 23, 2024
2 parents 0bca799 + 1d0b22f commit 40c8ca0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ class WindowsPtyHeuristics extends Disposable {
}

// Bash Prompt
const bashPrompt = lineText.match(/^(?<prompt>.*\$)/)?.groups?.prompt;
const bashPrompt = lineText.match(/^(?<prompt>\$)/)?.groups?.prompt;
if (bashPrompt) {
const adjustedPrompt = this._adjustPrompt(bashPrompt, lineText, '$');
if (adjustedPrompt) {
Expand Down

0 comments on commit 40c8ca0

Please sign in to comment.