1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-11-24 04:29:16 +01:00

Removed unnecessary backslash in regex

This commit is contained in:
Sankalp Kotewar 2022-08-22 13:05:20 +00:00
parent 0ae6818675
commit 8954b07458
3 changed files with 3 additions and 3 deletions

View file

@ -37662,7 +37662,7 @@ function getInputAsArray(name, options) {
return core return core
.getInput(name, options) .getInput(name, options)
.split("\n") .split("\n")
.map(s => s.replace(/^\!\s+/, "!").trim()) .map(s => s.replace(/^!\s+/, "!").trim())
.filter(x => x !== "") .filter(x => x !== "")
.sort(); .sort();
} }

2
dist/save/index.js vendored
View file

@ -37662,7 +37662,7 @@ function getInputAsArray(name, options) {
return core return core
.getInput(name, options) .getInput(name, options)
.split("\n") .split("\n")
.map(s => s.replace(/^\!\s+/, "!").trim()) .map(s => s.replace(/^!\s+/, "!").trim())
.filter(x => x !== "") .filter(x => x !== "")
.sort(); .sort();
} }

View file

@ -61,7 +61,7 @@ export function getInputAsArray(
return core return core
.getInput(name, options) .getInput(name, options)
.split("\n") .split("\n")
.map(s => s.replace(/^\!\s+/, "!").trim()) .map(s => s.replace(/^!\s+/, "!").trim())
.filter(x => x !== "") .filter(x => x !== "")
.sort(); .sort();
} }