mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 16:53:57 +08:00
Sort inputs and remove whitespaces after exclamation at the beginning of lines
This commit is contained in:
parent
9c77c9dbfc
commit
2bdaf00273
3 changed files with 34 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue