Skip to content

Commit

Permalink
Merge pull request #402 from kitaev/master
Browse files Browse the repository at this point in the history
esearch parser was failing on single digit items, like 'ALL 1'
  • Loading branch information
mscdex committed Jul 10, 2014
2 parents 57bde8c + 937336e commit b525a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Parser.js
Expand Up @@ -329,7 +329,7 @@ function parseESearch(text, literals) {
key = r[i].toLowerCase();
val = r[i + 1];
if (key === 'all')
val = val.split(',');
val = val.toString().split(',');
attrs[key] = val;
}

Expand Down

0 comments on commit b525a6a

Please sign in to comment.