Rinser/plugins/filter_reject.js
2017-05-30 09:23:57 +01:00

14 lines
1.1 KiB
JavaScript

module.exports = function (item, itemOptions, source) {
var patt = /(T24|Test Analyst|Insight Analyst|application tester|senior tester|Salesforce|QlikView|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|websphere administrator|Research Data Scientist)/ig;
var engineers = /(Support|Devops|Planning|security|Postgresql|network|sccm|test)\s(Engineer)/ig;
var developers = /(Java|PHP|Graduate|Access|Oracle ADF|SHAREPOINT|Ruby on Rails|Java Software|IOS|Qlikview|)\s(Developer|C\++)/ig;
var architects = /(Java|PHP|Microsoft)\s(Architect)/ig;
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);
return (result||resultB === true) ? -1 : itemOptions;
};