Closed jean-alain-re closed 9 years ago
+1. Same error.
It seems to be a trivial but a very useful thing to do.
I’m writing a browserify-transform graspify, and there are a bunch of use-cases where passing a function to replace
comes handy. For example, if you need to make some calculations based on matched result, like eval simple maths 1000*60*60*24
, Math.PI / 180
etc.
Besides, having an API conforming with String.replace
is a very good idea.
@gkz any thoughts?
@gkz Seems you just have to bump package version.
grasp 0.3.0 released
Great!
From this ticket, https://github.com/gkz/grasp/issues/22 , we can use a function to replace.
I try this and it doesn't work.
I have this error.
How can i use this options?