advanced-results
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -151,5 +151,5 @@ "use strict"; | ||
// In case all parametar is ?all=dsadas%20 ---> all = 'dsadas '. And when i do .split(' ') it makes 2 words the actual word which is dsadas and the empty space ---> ['dsadas', '']; This is bad so i need to trim the ends and beginning of that string | ||
req.query.all = req.query.all.trim(); | ||
// In case query is all=Sth+sth | ||
if (req.query.all) { | ||
req.query.all = req.query.all.trim(); | ||
words = words.concat(req.query.all.split(' ')); | ||
@@ -160,2 +160,3 @@ wordsString = wordsString + req.query.all; | ||
if (req.query.q) { | ||
req.query.q = req.query.q.trim(); | ||
words = words.concat(req.query.q.split(' ')); | ||
@@ -162,0 +163,0 @@ wordsString = wordsString + req.query.q; |
{ | ||
"name": "advanced-results", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "Advanced query middleware for expressjs and mongoose", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
63197
514