Skip to content

Commit eea177e

Browse files
committed
Fix space
1 parent 727868f commit eea177e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ function Get-GHActionsInput {
353353
}
354354
process {
355355
$Name | ForEach-Object -Process {
356-
$InputValue = Get-ChildItem -Path "Env:\INPUT_$($_.ToUpper() -replace '[ \n\r]','_')" -ErrorAction SilentlyContinue
356+
$InputValue = Get-ChildItem -Path "Env:\INPUT_$($_.ToUpper() -replace '[ \n\r\s\t]+','_')" -ErrorAction SilentlyContinue
357357
if ($null -eq $InputValue) {
358358
if ($Require) {
359359
throw "Input ``$_`` is not defined!"
@@ -414,7 +414,7 @@ function Get-GHActionsState {
414414
}
415415
process {
416416
$Name | ForEach-Object -Process {
417-
$StateValue = Get-ChildItem -Path "Env:\STATE_$($_.ToUpper() -replace '[ \n\r]','_')" -ErrorAction SilentlyContinue
417+
$StateValue = Get-ChildItem -Path "Env:\STATE_$($_.ToUpper() -replace '[ \n\r\s\t]+','_')" -ErrorAction SilentlyContinue
418418
if ($null -eq $StateValue) {
419419
$Result[$_] = $StateValue
420420
} else {

0 commit comments

Comments
 (0)