Merge pull request #210776 from microsoft/tyriar/210773

Make bash window prompt adjuster more strict
This commit is contained in:
Daniel Imms 2024-04-19 11:22:44 -07:00 committed by GitHub
commit a21b3e7a7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {