Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 2e98944

Browse files
authored
Merge branch 'main' into clean-releasebuild
2 parents c265012 + a37ed00 commit 2e98944

File tree

2 files changed

+15
-62
lines changed

2 files changed

+15
-62
lines changed

src/Microsoft.PowerShell.TextUtility.format.ps1xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
<ScriptBlock>
1414
Set-StrictMode -Off
1515

16-
$deleteColor = "`e[1;9;31m"
17-
$insertColor = "`e[0;1;32m"
18-
$resetColor = "`e[0m"
16+
$deleteColor = "$([char]0x1b)[1;9;31m"
17+
$insertColor = "$([char]0x1b)[0;1;32m"
18+
$resetColor = "$([char]0x1b)[0m"
1919
$textBuilder = [System.Text.StringBuilder]::new()
2020
$newline = [System.Environment]::NewLine
2121

@@ -85,10 +85,10 @@
8585

8686
$deleteText = [System.Text.StringBuilder]::new()
8787
$insertText = [System.Text.StringBuilder]::new()
88-
$deleteColor = "`e[1;9;31m"
89-
$insertColor = "`e[0;1;32m"
90-
$resetColor = "`e[0m"
91-
$ellipsis = "`u{2026}"
88+
$deleteColor = "$([char]0x1b)[1;9;31m"
89+
$insertColor = "$([char]0x1b)[0;1;32m"
90+
$resetColor = "$([char]0x1b)[0m"
91+
$ellipsis = [char]0x2026
9292
$newline = [System.Environment]::NewLine
9393

9494
foreach ($diff in $_.Diff) {
Lines changed: 8 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,28 @@
1-
# Copyright (c) Microsoft Corporation. All rights reserved.
1+
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

44
@{
5-
# Script module or binary module file associated with this manifest.
65
RootModule = '.\Microsoft.PowerShell.TextUtility.dll'
7-
8-
# Version number of this module.
9-
ModuleVersion = '1.0.0'
10-
11-
# Supported PSEditions
6+
ModuleVersion = '0.1.0'
127
CompatiblePSEditions = @('Desktop', 'Core')
13-
14-
# ID used to uniquely identify this module
158
GUID = '5cb64356-cd04-4a18-90a4-fa4072126155'
16-
17-
# Author of this module
189
Author = 'Microsoft Corporation'
19-
20-
# Company or vendor of this module
2110
CompanyName = 'Microsoft Corporation'
22-
23-
# Copyright statement for this module
2411
Copyright = '(c) Microsoft Corporation. All rights reserved.'
25-
26-
# Description of the functionality provided by this module
2712
Description = "This module contains cmdlets to help with manipulating or reading text."
28-
29-
# Minimum version of the PowerShell engine required by this module
3013
PowerShellVersion = '5.1'
31-
32-
# Format files (.ps1xml) to be loaded when importing this module
3314
FormatsToProcess = @('Microsoft.PowerShell.TextUtility.format.ps1xml')
34-
35-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
3615
CmdletsToExport = @(
3716
'Compare-Text','ConvertFrom-Base64','ConvertTo-Base64'
3817
)
39-
40-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
4118
PrivateData = @{
42-
4319
PSData = @{
20+
LicenseUri = 'https://github.com/PowerShell/TextUtility/blob/main/LICENSE'
21+
ProjectUri = 'https://github.com/PowerShell/TextUtility'
22+
ReleaseNotes = 'Initial release'
23+
Prerelease = 'Preview1'
24+
}
25+
}
4426

45-
# Tags applied to this module. These help with module discovery in online galleries.
46-
# Tags = @()
47-
48-
# A URL to the license for this module.
49-
LicenseUri = 'https://github.com/PowerShell/Modules/License.txt'
50-
51-
# A URL to the main website for this project.
52-
ProjectUri = 'https://github.com/PowerShell/Modules'
53-
54-
# A URL to an icon representing this module.
55-
# IconUri = ''
56-
57-
# ReleaseNotes of this module
58-
# ReleaseNotes = ''
59-
60-
# Prerelease string of this module
61-
# Prerelease = ''
62-
63-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
64-
# RequireLicenseAcceptance = $false
65-
66-
# External dependent modules of this module
67-
# ExternalModuleDependencies = @()
68-
} # End of PSData hashtable
69-
70-
} # End of PrivateData hashtable
71-
72-
# HelpInfo URI of this module
7327
# HelpInfoURI = ''
74-
7528
}

0 commit comments

Comments
 (0)