Sort inputs and remove whitespaces after exclamation at the beginning of lines
This commit is contained in:
1 parent
fd5de65bc8
commit
204fa1ab69
3 files changed
+34
-3
No files matched your search
@@ -61,8 +61,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(
|
||||
|
||||
Reference in new issue
Block a user