Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
gly
1.1.0
private/ConvertFrom-GlyAnsiEscape.ps1
function
ConvertFrom-GlyAnsiEscape
{
param
(
[
AllowNull
(
)
]
[string]
$Text
)
if
(
$null
-eq
$Text
)
{
return
''
}
return
[regex]
::
Replace
(
$Text
,
"`e\[[0-9;]*m"
,
''
)
}