This commit is contained in:
Richard Feldman 2023-07-31 13:46:12 -04:00
parent 4cb3a06246
commit b19d098e5f
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -666,7 +666,7 @@ replaceEachHelp = \buf, haystack, needle, flower ->
|> Str.concat flower
|> replaceEachHelp after needle flower
Err NotFound -> buf
Err NotFound -> Str.concat buf haystack
expect Str.replaceEach "abXdeXghi" "X" "_" == "ab_de_ghi"
expect Str.replaceEach "abcdefg" "nothing" "_" == "abcdefg"