STR-608: string-replace doesnt work for many cases
stratego> <string-replace(|“foo”, “bar”)> “is there a foo around here?”
“baris there a around here?”Note that it does work for some cases, like the one from the strategy’s example:
Submitted on 2 August 2006 at 19:38
stratego> <string-replace(|“foo”, “bar”)> “foobarfoo”
“barbarbar”
Issue Log
STR-608, martin:
This has been fixed recently, see also issue STR-593From revision 15399 string-replace should work correctly (at least it does for much more tests and your example).
Thanks for reporting anyway :)
STR-608, lennartkats:
Thanks, good to hear that it was fixed. It appears that I was using an older version of the library, loaded through libdryad (which overrides my libstratego-lib import, perhaps another issue?). Without the libdryad import - or with a freshly compiled libdryad.la - it works fine for me too.
Log in to post comments