Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ module.exports = function(opts) {
// compose them together into one function
var filter = filterlist.reduce(compose);

// check match for filter options object
var options = match.match('{([^}]*)}') || ["{}"];
options = JSON.parse(options[0]);

// and apply the composed function to the stringified content
return filter(String(includeContent));
return filter(String(includeContent), options);
}
};

Expand Down