Skip to content

Commit

Permalink
minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed Jul 7, 2022
1 parent c8be4c1 commit 6961bac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/helpers/js.nim
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ func replace*(pattern: string, self: RegExp, replacement: string): cstring =
replace(pattern.cstring, self, replacement.cstring)

func replaceAll*(pattern: cstring, self: RegExp, replacement: cstring): cstring {.importjs: "#.replaceAll(#,#)".}
## Returns a new string with all matches of a pattern replaced by given replacement

func delay*(time: cint) {.importjs: """
await new Promise(done => setTimeout(() => done(), #));
"""}
## Returns a new string with all matches of a pattern replaced by given replacement

0 comments on commit 6961bac

Please sign in to comment.