7 lines
279 B
JavaScript
7 lines
279 B
JavaScript
|
module.exports = function(needle, haystack, options) {
|
||
|
// needle = Handlebars.escapeExpression(needle);
|
||
|
// haystack = Handlebars.escapeExpression(haystack);
|
||
|
return (haystack.indexOf(needle) > -1) ? options.fn(this) : options.inverse(this);
|
||
|
// return options.fn(this);
|
||
|
};
|