From 8954b0745817a5cd787e58a682ccc504b3c8d37a Mon Sep 17 00:00:00 2001 From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:05:20 +0000 Subject: [PATCH] Removed unnecessary backslash in regex --- dist/restore/index.js | 2 +- dist/save/index.js | 2 +- src/utils/actionUtils.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/restore/index.js b/dist/restore/index.js index 51eb439..c79eb6b 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -37662,7 +37662,7 @@ function getInputAsArray(name, options) { return core .getInput(name, options) .split("\n") - .map(s => s.replace(/^\!\s+/, "!").trim()) + .map(s => s.replace(/^!\s+/, "!").trim()) .filter(x => x !== "") .sort(); } diff --git a/dist/save/index.js b/dist/save/index.js index cb05442..88ff962 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -37662,7 +37662,7 @@ function getInputAsArray(name, options) { return core .getInput(name, options) .split("\n") - .map(s => s.replace(/^\!\s+/, "!").trim()) + .map(s => s.replace(/^!\s+/, "!").trim()) .filter(x => x !== "") .sort(); } diff --git a/src/utils/actionUtils.ts b/src/utils/actionUtils.ts index 2f54c3b..46c5ec1 100644 --- a/src/utils/actionUtils.ts +++ b/src/utils/actionUtils.ts @@ -61,7 +61,7 @@ export function getInputAsArray( return core .getInput(name, options) .split("\n") - .map(s => s.replace(/^\!\s+/, "!").trim()) + .map(s => s.replace(/^!\s+/, "!").trim()) .filter(x => x !== "") .sort(); }