incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaven...@apache.org
Subject [02/20] git commit: fix bug with search typeahead when space after colon
Date Fri, 12 Sep 2014 02:44:55 GMT
fix bug with search typeahead when space after colon


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/4233c6b2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/4233c6b2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/4233c6b2

Branch: refs/heads/master
Commit: 4233c6b240933dc09b2c49db6d591e80248c49a7
Parents: 729a44c
Author: Andrew Avenoso <andrew.va@gmail.com>
Authored: Thu Sep 11 13:45:11 2014 -0400
Committer: Andrew Avenoso <andrew.va@gmail.com>
Committed: Thu Sep 11 13:45:11 2014 -0400

----------------------------------------------------------------------
 blur-console/src/main/webapp/js/blurconsole.search.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/4233c6b2/blur-console/src/main/webapp/js/blurconsole.search.js
----------------------------------------------------------------------
diff --git a/blur-console/src/main/webapp/js/blurconsole.search.js b/blur-console/src/main/webapp/js/blurconsole.search.js
index be470f1..0ecb793 100644
--- a/blur-console/src/main/webapp/js/blurconsole.search.js
+++ b/blur-console/src/main/webapp/js/blurconsole.search.js
@@ -77,6 +77,8 @@ blurconsole.search = (function () {
       mode: null
     };
     query = query.toLowerCase();
+    query = query.replace(/ +/g, ' ');
+    query = query.replace(/: +/g, ':');
     var dotIndex = query.lastIndexOf('.');
     var colonIndex = query.lastIndexOf(':');
     var lParenIndex = query.lastIndexOf('(');


Mime
View raw message