mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 03:47:20 +00:00
fix: update characters escaped by safe output (#1815)
This commit is contained in:
parent
7aaf10d9ee
commit
716b1e1304
3 changed files with 1 additions and 4 deletions
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
|
@ -1355,10 +1355,7 @@ export const setOutput = async ({
|
|||
|
||||
// if safeOutput is true, escape special characters for bash shell
|
||||
if (safeOutput) {
|
||||
cleanedValue = cleanedValue.replace(
|
||||
/[^\x20-\x7E]|[:*?"<>|;`$()&!]/g,
|
||||
'\\$&'
|
||||
)
|
||||
cleanedValue = cleanedValue.replace(/[^\x20-\x7E]|[:*?<>|;`$()&!]/g, '\\$&')
|
||||
}
|
||||
|
||||
core.setOutput(key, cleanedValue)
|
||||
|
|
Loading…
Reference in a new issue