2
0
Fork 0
mirror of https://code.forgejo.org/docker/metadata-action.git synced 2025-09-16 09:46:56 +00:00

handle comments for multi-line inputs

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-03-07 07:37:59 +01:00
parent f3c886e26b
commit 1068b75f65
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
4 changed files with 25 additions and 17 deletions

View file

@ -49,6 +49,7 @@ export function getInputList(name: string, ignoreComma?: boolean): string[] {
for (let output of csvparse(items, {
columns: false,
relax: true,
comment: '#',
relaxColumnCount: true,
skipLinesWithEmptyValues: true
}) as Array<string[]>) {