Sort inputs and remove whitespaces after exclamation at the beginning of lines

This commit is contained in:
Álvaro Mondéjar committed 2020-11-28 20:34:06 +01:00
1 parent 9c77c9dbfc
commit 2bdaf00273
3 files changed
+34 -3

No files matched your search

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