tweb-i2p/handlebarsHelpers/contains.js
Eduard Kuzmenko bc773884f3 Multitabs
Floating avatars
Dialogs placeholder
Bubble grouping fixes
Layer 143
Improve profile change performance
Webpack 5
Message reading fixes
2022-06-17 20:01:43 +04:00

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);
};