tighter jobs-special

This commit is contained in:
Martin Donnelly 2018-08-09 18:34:36 +01:00
parent 1bb2920633
commit 75f02b9954

View File

@ -1,5 +1,5 @@
module.exports = function (item, itemOptions, source) {
const patt = /(glasgow|london|edinburgh)/ig;
const patt = /(glasgow|london|edinburgh|milton keynes)/ig;
const result = patt.test(itemOptions.description);
const resultB = patt.test(itemOptions.title);
console.log('Location:', (result || resultB === true) ? 'Pass' : 'Reject');