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
This commit is contained in:
Kelvin Tan 2002-12-11 03:29:05 +00:00
parent 58e380b0e8
commit 388a02fa1d
1 changed files with 1 additions and 1 deletions

View File

@ -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