Created
August 4, 2014 14:01
-
-
Save MoOx/f40a00dffeb21a54eb9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
replaceFunctionCall("blah TRUC(1) machin TRUC(2)", "TRUC", fn(body) { | |
// body === 1, then 2 | |
/* your stuff on body */ | |
// eg body += "truc" | |
return body | |
}) | |
// => "blah 1truc machin 2truc" |
bloodyowl
commented
Aug 4, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment