1
0
Fork 0
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:
Takanori Oishi 2021-12-26 20:53:30 +09:00
parent ebe4ac336f
commit 33f1d64363
No known key found for this signature in database
GPG key ID: EA52C9F1C3C9396D
2 changed files with 37 additions and 10 deletions

View file

@ -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())
}
/**