Skip to content

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Dec 24, 2023
1 parent c367ee3 commit 4d27997
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4d27997

Please sign in to comment.