Rinser/plugins/filter_glasgow.js

8 lines
220 B
JavaScript
Raw Normal View History

2015-07-20 13:42:07 +00:00
module.exports = function (item, itemOptions, source) {
2016-08-17 14:36:28 +00:00
if(itemOptions.description.indexOf('Glasgow') > 0 || itemOptions.description.indexOf('London') > 0)
2015-07-20 13:42:07 +00:00
return itemOptions;
else
return -1;
2016-08-17 14:36:28 +00:00
};