Skip to content

Commit

Permalink
Preserve quotes inside unquoted field
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Nov 29, 2021
1 parent 5220b23 commit 59e3d70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -162,7 +162,7 @@ jobs:
labels: |
maintainer=CrazyMax
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
json:
Expand Down
4 changes: 2 additions & 2 deletions __tests__/meta.test.ts
Expand Up @@ -1921,7 +1921,7 @@ describe('latest', () => {
labels: [
"maintainer=CrazyMax",
"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",
]
} as Inputs,
Expand All @@ -1945,7 +1945,7 @@ describe('latest', () => {
"org.opencontainers.image.licenses=MIT",
"maintainer=CrazyMax",
"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"
]
],
Expand Down
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/context.ts
Expand Up @@ -48,6 +48,7 @@ export function getInputList(name: string, ignoreComma?: boolean): string[] {

for (let output of csvparse(items, {
columns: false,
relax: true,
relaxColumnCount: true,
skipLinesWithEmptyValues: true
}) as Array<string[]>) {
Expand Down

0 comments on commit 59e3d70

Please sign in to comment.