X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Funderscore.string%2Finclude.js;fp=node_modules%2Funderscore.string%2Finclude.js;h=a2e910f78c6f69432510bbd89d73459cb27aa171;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/node_modules/underscore.string/include.js b/node_modules/underscore.string/include.js new file mode 100644 index 000000000..a2e910f78 --- /dev/null +++ b/node_modules/underscore.string/include.js @@ -0,0 +1,6 @@ +var makeString = require('./helper/makeString'); + +module.exports = function include(str, needle) { + if (needle === '') return true; + return makeString(str).indexOf(needle) !== -1; +};