mirror of https://github.com/apache/lucene.git
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:
parent
58e380b0e8
commit
388a02fa1d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue