diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f5bc40b..e099f01 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -48,8 +48,8 @@ - - + + @@ -98,8 +98,8 @@ - - + + @@ -190,8 +190,8 @@ @@ -504,14 +504,7 @@ - - - - 1438343244912 - 1438343582415 @@ -849,11 +842,18 @@ - - - - - - - - - @@ -1300,10 +1292,18 @@ + + + + + + + + - - + + diff --git a/plugins/filter_reject.js b/plugins/filter_reject.js index 3ab1c8c..a42424b 100644 --- a/plugins/filter_reject.js +++ b/plugins/filter_reject.js @@ -5,8 +5,8 @@ module.exports = function (item, itemOptions, source) { var developers = /(Java|PHP|Graduate|Access)\s(Developer)/ig; var architects = /(Java|PHP|Microsoft)\s(Architect)/ig; - var result = patt.test(description) || engineers.test(description) || developers.test(description) || architects.test(description); - var resultB = patt.test(title) || engineers.test(title) || developers.test(title) || architects.test(title); + 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;