From 4d27997700705c1ce364fc5a4f4dafefb29cbbd9 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 24 Dec 2023 09:22:31 -0700 Subject: [PATCH] Update utils.ts --- src/utils.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index eafec7fd214..023ba300a25 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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)