From 5d29943b992955f6bb247eb524a57fe452cdda69 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Thu, 9 Aug 2018 17:41:48 +0100 Subject: [PATCH] tighter jobs-special --- feeds/jobs-special.json | 1 + plugins/filter_reject.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/feeds/jobs-special.json b/feeds/jobs-special.json index df0a631..3ee2d3b 100644 --- a/feeds/jobs-special.json +++ b/feeds/jobs-special.json @@ -3,6 +3,7 @@ "default_count": 1, "no_cdata_fields": [], "plugins": [ + "filter_show", "filter_location", "filter_reject", "filter_md_jobs", diff --git a/plugins/filter_reject.js b/plugins/filter_reject.js index 1a37ae9..5a3bb4c 100644 --- a/plugins/filter_reject.js +++ b/plugins/filter_reject.js @@ -3,7 +3,7 @@ module.exports = function (item, itemOptions, source) { const engineers = /(Support|Devops|Planning|security|Postgresql|network|sccm|test|data|imac|firewall|vmware)+(?:\s)(?=Engineer)/ig; const developers = /(Java|PHP|Graduate|Access|Oracle ADF|SHAREPOINT|Ruby on Rails|Java Software|IOS|Qlikview)+(?:\s)(?=Developer)/ig; - const architects = /(Java|PHP|Microsoft)\s(Architect)/ig; + const architects = /(Java|PHP|Microsoft)+(?:\s)(?=Architect)/ig; const result = patt.test(itemOptions.description) || engineers.test(itemOptions.description) || developers.test(itemOptions.description) || architects.test(itemOptions.description); const resultB = patt.test(itemOptions.title) || engineers.test(itemOptions.title) || developers.test(itemOptions.title) || architects.test(itemOptions.title);