mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks (#16811)
* Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks * add CSI sequence and change default back to `host` * fix test for default outputrendering fix regex for CSI by escaping the question mark * remove hyperlink support
This commit is contained in:
@@ -83,7 +83,7 @@ Describe 'Tests for $PSStyle automatic variable' {
|
||||
|
||||
It '$PSStyle has correct default for OutputRendering' {
|
||||
$PSStyle | Should -Not -BeNullOrEmpty
|
||||
$PSStyle.OutputRendering | Should -BeExactly 'Ansi'
|
||||
$PSStyle.OutputRendering | Should -BeExactly 'Host'
|
||||
}
|
||||
|
||||
It '$PSStyle has correct defaults for style <key>' -TestCases (Get-TestCases $styleDefaults) {
|
||||
|
||||
Reference in New Issue
Block a user