We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e970c7 + b841162 commit 40c845eCopy full SHA for 40c845e
src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1
@@ -52,7 +52,7 @@ if ($env:VSCODE_ENV_APPEND) {
52
function Global:__VSCode-Escape-Value([string]$value) {
53
# NOTE: In PowerShell v6.1+, this can be written `$value -replace '…', { … }` instead of `[regex]::Replace`.
54
# Replace any non-alphanumeric characters.
55
- [regex]::Replace($value, "[$([char]0x1b)\\\n;]", { param($match)
+ [regex]::Replace($value, "[$([char]0x00)-$([char]0x1f)\\\n;]", { param($match)
56
# Encode the (ascii) matches as `\x<hex>`
57
-Join (
58
[System.Text.Encoding]::UTF8.GetBytes($match.Value) | ForEach-Object { '\x{0:x2}' -f $_ }
0 commit comments