Rinser/plugins/filter_reject.js

8 lines
421 B
JavaScript
Raw Normal View History

2016-08-17 14:36:28 +00:00
module.exports = function (item, itemOptions, source) {
2016-08-17 16:10:26 +00:00
var patt = /(drupal|SHAREPOINT|Support Engineer|per annum|Devops Engineer|ServiceNow|Test Lead|User Researcher|Service Management|\(PERM\)|Java Developer|£\d.K|Remedy|ITSM|Symfony|Zend|PHP Developer)/ig;
2016-08-17 14:36:28 +00:00
var result = patt.test(itemOptions.description);
var resultB = patt.test(itemOptions.title);
return (result||resultB === true) ? -1 : itemOptions;
};