Skip to content

Commit

Permalink
Merge pull request #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 Apr 19, 2024
2 parents de1b891 + 4b93f8a commit a21b3e7
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 a21b3e7

Please sign in to comment.