Closed feep closed 4 years ago
This could be related to this commit: https://github.com/qri-io/starlib/commit/2beea78d035874774a464b0ff6568bb159c00b14 which upgraded the version of starlark that we build off of. @b5 is this expected behavior for how starlark's regex's work? @feep did you try changing ("\[.*]", jsonblobhits)
to (r"\[.*]", jsonblobhits)
? Adding an "r" will make this a "raw string", which uses different rules for parsing escape sequences, and is often used for regex literals.
@feep did you try changing ("[.]", jsonblobhits) to (r"[.]", jsonblobhits)?
In this test case, r""
works in all versions.
Also works in my code.
Using raw string seems to fix if you want to close.
Thanks.
Looks like it last worked in 0.9.6.
The 0.9.6 result is correct. The test case calls
error()
to display the result.