Permalink
Browse files

Use Trim instead of substring to workout function name

  • Loading branch information...
1 parent ae3f0ba commit 9291fda8370e407a3a9f1f8ca5c83fbc141be983 @chelnak chelnak committed Jan 7, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 build.psake.ps1
View
@@ -61,7 +61,7 @@ Task UpdateModuleManifest {
# --- Functions To Export
Write-Verbose -Message "Processing FunctionsToExport"
$FunctionsToExportRaw = $PublicFunctions | Select-Object -ExpandProperty BaseName | Sort-Object
- $ModuleManifest.FunctionsToExport = $FunctionsToExportRaw | ForEach-Object {if ($_.StartsWith("DEPRECATED-")) { $_.SubString("DEPRECATED-".length)}else{$_} }
+ $ModuleManifest.FunctionsToExport = $FunctionsToExportRaw | ForEach-Object {if ($_.StartsWith("DEPRECATED-")) { $_.Trim("DEPRECATED-")}else{$_} }
# --- Private Data
Write-Verbose -Message "Processing PrivateData"

0 comments on commit 9291fda

Please sign in to comment.