Skip to content

Commit

Permalink
add support for string prototype methods
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed Apr 18, 2015
1 parent 9abb956 commit 6765cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}
Expand Down

0 comments on commit 6765cea

Please sign in to comment.