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
I believe this has been noted in #1825, but got lost along the way: since map iteration is nondetermistic, so is the ordering in the replacement array built here. Since in strings.Replacer, "old string comparisons are done in argument order", this has implications on what gets replaced.
I believe this has been noted in #1825, but got lost along the way: since map iteration is nondetermistic, so is the ordering in the replacement array built here. Since in
strings.Replacer
, "old string comparisons are done in argument order", this has implications on what gets replaced.AFAICT it only affects overlapping matches.
Expected Behavior
No matter how often I run this,
I always get the same result.
Actual Behavior
Steps to Reproduce the Problem
Run the snippet above many times, note the output.
Additional Info
But I don't think that this has much to do with the OPA version used. It was introduced in v0.15.0.
The text was updated successfully, but these errors were encountered: