mirror of https://github.com/pelias/api.git
Alex Loyko
7 years ago
4 changed files with 11 additions and 34 deletions
@ -1,5 +1,9 @@
|
||||
const _ = require('lodash'); |
||||
|
||||
module.exports = (request, response) => { |
||||
return _.includes(request.query.text, '&') || _.includes(request.query.text, ' and '); |
||||
if(request) { |
||||
return _.includes(request.query.text, '&') || _.includes(request.query.text, ' and '); |
||||
} |
||||
|
||||
return false; |
||||
}; |
||||
|
Loading…
Reference in new issue