-
I’ve developed an action that runs regex substitution on input strings, and today I’ve received a bug report that it is not possible to replace strings with whitespace: not able to replace char with whitespace · Issue #6 · frabert/replace-string-action · GitHub From my brief testing it looks like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I wasn’t sure if this could be a problem with YAML itself, but I’m fairly sure after some testing that the |
Beta Was this translation helpful? Give feedback.
-
There’s actually a better way -
|
Beta Was this translation helpful? Give feedback.
There’s actually a better way -
@actions/core
supports an option to turn trimming of whitespace off since v1.3.0: Core: Add trimWhiteSpace to getInput by luketomlinson · Pull Request #802 · actions/toolkit · GitHub