mirror of
https://github.com/actions/toolkit
synced 2025-05-09 08:33:00 +00:00
fix: getMultilineInput trims whitespace
This commit is contained in:
parent
ebe4ac336f
commit
33f1d64363
2 changed files with 37 additions and 10 deletions
|
@ -170,7 +170,11 @@ export function getMultilineInput(
|
|||
.split('\n')
|
||||
.filter(x => x !== '')
|
||||
|
||||
return inputs
|
||||
if (options && options.trimWhitespace === false) {
|
||||
return inputs
|
||||
}
|
||||
|
||||
return inputs.map(input => input.trim())
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue