-
-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to parse "\\(" #1991
Comments
I am also encountering issues with this feature, namely that I want to do function-like stuff by saving off eval strings as variables for later use, which means I want to be able to escape a |
"point release" I see there is no |
@mikefarah merged #1997 over the weekend... I actually never tried your original example, @JesseSchobben-TomTom , but I just have and it seems to work fine. |
Got @mbenson 's fix in 4.44.1 :) |
Describe the bug
yq 4.43.1
introduces string interpolation, but it doesn't play nice with escaped braces in a regex.Version of yq: 4.43.1
Operating system: mac
Installed via: homebrew
Command
The following throws an error:
With a single backslash that failure would be expected, but for the above command I'd expect a successful match reporting "test(".
Expected behavior
Maybe we should follow the behavior of
jq
here:Additional context
As side info, with
yq 4.42.1
the single-backslash variant works, but double-backslash fails, so we'll have an incompatibility either way:The text was updated successfully, but these errors were encountered: