fix: support quote wrapping in append-data

This commit is contained in:
Chen Asraf
2023-04-24 12:57:16 +03:00
committed by Chen Asraf
parent 222e1a04ca
commit 4fecca8483
4 changed files with 15 additions and 3 deletions

View File

@@ -116,5 +116,9 @@ describe("Utils", () => {
test("overwrites existing value", () => {
expect(parseAppendData("name:=123", blankCliConf)).toEqual({ name: 123 })
})
test("works with quotes", () => {
expect(parseAppendData('key="value test"', blankCliConf)).toEqual({ key: "value test", name: "test" })
})
})
})