Rinser/plugins/filter_reject.js

14 lines
980 B
JavaScript
Raw Normal View History

2016-08-17 14:36:28 +00:00
module.exports = function (item, itemOptions, source) {
2016-08-22 10:41:38 +00:00
var patt = /(Navision|Murex|seo|django|drupal|SHAREPOINT|per annum|ServiceNow|Test Lead|User Researcher|Service Management|\(PERM\)|£\d.K|Remedy|ITSM|Symfony|Zend|Full Time|Technical Business Analyst|BUSINESS ANALYST|AUTOMATION TESTER|FIELD TECHNICIAN)/ig;
2016-08-18 08:52:46 +00:00
2016-08-22 10:41:38 +00:00
var engineers = /(Support|Devops|Planning|security|Postgresql)\s(Engineer)/ig;
var developers = /(Java|PHP|Graduate|Access|Oracle ADF|SHAREPOINT|Ruby on Rails|Java Software|IOS|C)\s(Developer)/ig;
2016-08-18 08:52:46 +00:00
var architects = /(Java|PHP|Microsoft)\s(Architect)/ig;
2016-08-18 09:01:44 +00:00
var result = patt.test(itemOptions.description) || engineers.test(itemOptions.description) || developers.test(itemOptions.description) || architects.test(itemOptions.description);
var resultB = patt.test(itemOptions.title) || engineers.test(itemOptions.title) || developers.test(itemOptions.title) || architects.test(itemOptions.title);
2016-08-18 08:52:46 +00:00
2016-08-17 14:36:28 +00:00
return (result||resultB === true) ? -1 : itemOptions;
};