fix: getMultilineInput trims whitespace

This commit is contained in:
Takanori Oishi
2021-12-26 20:53:30 +09:00
parent ebe4ac336f
commit 33f1d64363
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())
}
/**