diff --git a/index.js b/index.js index 8066a0d..7026198 100644 --- a/index.js +++ b/index.js @@ -71,7 +71,7 @@ module.exports = function textr(options) { */ function exec(text) { return mws.reduce(function(text, mw) { - return mw(text, options) || text; + return mw.apply(text, [text, options]) || text; }, text); }