3
0
Fork 0
mirror of https://gitea.com/docker/metadata-action.git synced 2024-11-24 13:09:33 +01:00

Preserve quotes inside unquoted field

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-11-29 13:31:50 +01:00
parent 5220b23112
commit 59e3d70a23
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
4 changed files with 5 additions and 3 deletions

View file

@ -162,7 +162,7 @@ jobs:
labels: | labels: |
maintainer=CrazyMax maintainer=CrazyMax
org.opencontainers.image.title=MyCustomTitle org.opencontainers.image.title=MyCustomTitle
org.opencontainers.image.description=Another description org.opencontainers.image.description=this is a "good" example
org.opencontainers.image.vendor=MyCompany org.opencontainers.image.vendor=MyCompany
json: json:

View file

@ -1921,7 +1921,7 @@ describe('latest', () => {
labels: [ labels: [
"maintainer=CrazyMax", "maintainer=CrazyMax",
"org.opencontainers.image.title=MyCustomTitle", "org.opencontainers.image.title=MyCustomTitle",
"org.opencontainers.image.description=Another description", `org.opencontainers.image.description=this is a "good" example`,
"org.opencontainers.image.vendor=MyCompany", "org.opencontainers.image.vendor=MyCompany",
] ]
} as Inputs, } as Inputs,
@ -1945,7 +1945,7 @@ describe('latest', () => {
"org.opencontainers.image.licenses=MIT", "org.opencontainers.image.licenses=MIT",
"maintainer=CrazyMax", "maintainer=CrazyMax",
"org.opencontainers.image.title=MyCustomTitle", "org.opencontainers.image.title=MyCustomTitle",
"org.opencontainers.image.description=Another description", `org.opencontainers.image.description=this is a "good" example`,
"org.opencontainers.image.vendor=MyCompany" "org.opencontainers.image.vendor=MyCompany"
] ]
], ],

1
dist/index.js generated vendored
View file

@ -74,6 +74,7 @@ function getInputList(name, ignoreComma) {
} }
for (let output of sync_1.default(items, { for (let output of sync_1.default(items, {
columns: false, columns: false,
relax: true,
relaxColumnCount: true, relaxColumnCount: true,
skipLinesWithEmptyValues: true skipLinesWithEmptyValues: true
})) { })) {

View file

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