Skip to content

Commit

Permalink
!deploy v2.28.1 to resolve #188
Browse files Browse the repository at this point in the history
## 2.28.1

* [Issue #188](#188)
  * Fixed: `Get-SafeFileName` correctly replaces special RegEx chars with underscores as well.
  • Loading branch information
scrthq authored Jun 1, 2019
2 parents 950bbb8 + 16ff2f6 commit db1967b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* [PSGSuite - ChangeLog](#psgsuite---changelog)
* [2.28.1](#2281)
* [2.28.0](#2280)
* [2.27.0](#2270)
* [2.26.4](#2264)
Expand Down Expand Up @@ -88,6 +89,11 @@

# PSGSuite - ChangeLog

## 2.28.1

* [Issue #188](https://github.com/scrthq/PSGSuite/issues/188)
* Fixed: `Get-SafeFileName` correctly replaces special RegEx chars with underscores as well.

## 2.28.0

* [Issue #188](https://github.com/scrthq/PSGSuite/issues/188)
Expand Down
2 changes: 1 addition & 1 deletion PSGSuite/PSGSuite.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PSGSuite.psm1'

# Version number of this module.
ModuleVersion = '2.28.0'
ModuleVersion = '2.28.1'

# ID used to uniquely identify this module
GUID = '9d751152-e83e-40bb-a6db-4c329092aaec'
Expand Down
2 changes: 1 addition & 1 deletion PSGSuite/Private/Get-SafeFileName.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ function Get-SafeFileName {
$Name
)
Process {
$Name -replace "[$(([System.IO.Path]::GetInvalidFileNameChars() + [System.IO.Path]::GetInvalidPathChars()) -join '')]","_"
$Name -replace "[$([RegEx]::Escape("$(([System.IO.Path]::GetInvalidFileNameChars() + [System.IO.Path]::GetInvalidPathChars()) -join '')"))]","_"
}
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ All other functions are either intact or have an alias included to support backw

[Full CHANGELOG here](https://github.com/scrthq/PSGSuite/blob/master/CHANGELOG.md)

#### 2.28.1

* [Issue #188](https://github.com/scrthq/PSGSuite/issues/188)
* Fixed: `Get-SafeFileName` correctly replaces special RegEx chars with underscores as well.

#### 2.28.0

* [Issue #188](https://github.com/scrthq/PSGSuite/issues/188)
Expand Down

0 comments on commit db1967b

Please sign in to comment.