Generate build and fix format

pull/903/head
Vipul 2022-08-22 12:45:18 +00:00
parent 204fa1ab69
commit f316f94f31
3 changed files with 10 additions and 5 deletions

View File

@ -216,7 +216,10 @@ test("getInputAsArray handles empty lines correctly", () => {
}); });
test("getInputAsArray sorts files correctly", () => { test("getInputAsArray sorts files correctly", () => {
testUtils.setInput("foo", "bar\n!baz\nwaldo\nqux\nquux\ncorge\ngrault\ngarply"); testUtils.setInput(
"foo",
"bar\n!baz\nwaldo\nqux\nquux\ncorge\ngrault\ngarply"
);
expect(actionUtils.getInputAsArray("foo")).toEqual([ expect(actionUtils.getInputAsArray("foo")).toEqual([
"!baz", "!baz",
"bar", "bar",

View File

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

5
dist/save/index.js vendored
View File

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