fix: update characters escaped by safe output (#1815)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user