Minor version fixing some bugs.
Bug Fixes
- When passing a value to
sprintfusing%vas the format specifier, the
interpreter would JSON-escape the result in all cases, even if the argument
already a valid JSON string. This could result in double-escaping strings in
some contexts, which was an unintended behavior and a discrepancy between with
the reference implementation. The interpreter will now pass JSON strings
unchanged tosprintfwhen used in this way. - Two rules in
rego_to_bundlewere being shadowed. This did not affect the
functionality of the compiler but had resulted in an incorrect error message
being generated and in another case a rule which would never be matched.