From 937336e440fc9d50f1bb58b616f75bdafc7f8b9a Mon Sep 17 00:00:00 2001 From: Alexander Kitaev Date: Thu, 10 Jul 2014 02:44:15 +0200 Subject: [PATCH] esearch parser was failing on single digit items, like 'ALL 1' --- lib/Parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Parser.js b/lib/Parser.js index 90465e4..ad2d027 100644 --- a/lib/Parser.js +++ b/lib/Parser.js @@ -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; }