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
Describe the bug
When handling regex matching with yq, if we want to match against a parentheses, it is not possible. We always get this error about unclosed interpolation string
Version of yq: >= 4.43.1
Operating system: Linux
Installed via: binary release
Input Yaml
data.yml:
- name: abc
- name: d(ef)
Command
The command you ran:
yq '.[] | select(.name | test("d\(ef\)"))' data.yml # Works with version 4.42.1 and previous
yq --string-interpolation '.[] | select(.name | test("d\(ef\)"))' data.yml # Only possible after 4.43.1 but doesn't work, output is the same
Actual behavior
Error: unclosed interpolation string \(
Expected behavior
name: d(ef)
Additional context
I think the string interpolation feature is not working well, regex matching is greatly affected here
The text was updated successfully, but these errors were encountered:
Is there any usecase where we want string interpolation inside regex matches? I mean, we can always do test("something " + .property + " another something"), right?
Describe the bug
When handling regex matching with
yq
, if we want to match against a parentheses, it is not possible. We always get this error about unclosed interpolation stringVersion of yq: >= 4.43.1
Operating system: Linux
Installed via: binary release
Input Yaml
data.yml:
Command
The command you ran:
Actual behavior
Expected behavior
Additional context
I think the string interpolation feature is not working well, regex matching is greatly affected here
The text was updated successfully, but these errors were encountered: