From 388a02fa1d5522c1b0aa0e785dd306dffc5c74fc Mon Sep 17 00:00:00 2001 From: Kelvin Tan Date: Wed, 11 Dec 2002 03:29:05 +0000 Subject: [PATCH] Whitespace within the query string wasn't getting gobbled up. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150867 13f79535-47bb-0310-9956-ffa450edef68 --- .../javascript/queryConstructor/luceneQueryConstructor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js b/sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js index f25e5fa3165..b0948ca6402 100644 --- a/sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js +++ b/sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js @@ -119,7 +119,7 @@ function trim(inputString) { var temp = inputString; // Replace whitespace with a single space - var pattern = /\s/ig; + var pattern = /\s+/ig; temp = temp.replace(pattern, " "); // Trim