You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, escaping the inner double quotes will make it work in yq, but it will break in jq. I suspect this means that the yq parsing of strings is looking for the first unescaped double-quote in the string but it should be skipping any double-quotes that are within interpolation sections \(....).
The text was updated successfully, but these errors were encountered:
I don't think pure regex will be able to handle parsing interpolated strings because you will need to keep track of the paren wrapping depth of commands inside of interpolation blocks, i.e. I believe something like this is legal syntax in jq: "prefix\(func1(func2(func3("blah"))))suffix"
Describe the bug
Version of yq: 4.44.3
Operating system: ubuntu 24.04
Installed via: curl
Input Yaml
data1.yml:
data1.json:
{"data":["abc","def"]}
Command
The command you ran:
Actual behavior
Expected behavior
Additional context
Using jq on the json of the same data works fine:
Also, escaping the inner double quotes will make it work in yq, but it will break in jq. I suspect this means that the yq parsing of strings is looking for the first unescaped double-quote in the string but it should be skipping any double-quotes that are within interpolation sections
\(....)
.The text was updated successfully, but these errors were encountered: