Skip to content

Commit 716b1e1

Browse files
authored
fix: update characters escaped by safe output (#1815)
1 parent 7aaf10d commit 716b1e1

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1355,10 +1355,7 @@ export const setOutput = async ({
13551355

13561356
// if safeOutput is true, escape special characters for bash shell
13571357
if (safeOutput) {
1358-
cleanedValue = cleanedValue.replace(
1359-
/[^\x20-\x7E]|[:*?"<>|;`$()&!]/g,
1360-
'\\$&'
1361-
)
1358+
cleanedValue = cleanedValue.replace(/[^\x20-\x7E]|[:*?<>|;`$()&!]/g, '\\$&')
13621359
}
13631360

13641361
core.setOutput(key, cleanedValue)

0 commit comments

Comments
 (0)