@yoshuawuyts Golf:
function regstash(string, context){
return string.replace(/\{\{(.*?)\}\}/g, (string, key) => context[key]);
}
-
-
-
@yoshuawuyts Silly time: var regstash = (s, c) => s.replace(/\{\{(.*?)\}\}/g, (s, k) => c[k]) - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.