mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-18 15:01:24 +00:00
bugfixes: tests are green again
This commit is contained in:
@@ -677,7 +677,7 @@ proc replace*(s: string, sub, by: char): string {.noSideEffect,
|
||||
inc(i)
|
||||
|
||||
proc replaceWord*(s, sub: string, by = ""): string {.noSideEffect,
|
||||
rtl, extern: "nsuReplaceStr".} =
|
||||
rtl, extern: "nsuReplaceWord".} =
|
||||
## Replaces `sub` in `s` by the string `by`. Each occurance of `sub`
|
||||
## has to be surrounded by word boundaries (comparable to ``\\w`` in
|
||||
## regular expressions), otherwise it is not replaced.
|
||||
|
||||
Reference in New Issue
Block a user