[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-dev
Subject: cvs commit: jakarta-lucene-sandbox/contributions/javascript/queryConstructor luceneQueryConstructor.
From: kelvint () apache ! org
Date: 2002-12-11 3:29:05
[Download RAW message or body]
kelvint 2002/12/10 19:29:05
Modified: contributions/javascript/queryConstructor
luceneQueryConstructor.js
Log:
Whitespace within the query string wasn't getting gobbled up.
Revision Changes Path
1.5 +1 -1 \
jakarta-lucene-sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js
Index: luceneQueryConstructor.js
===================================================================
RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- luceneQueryConstructor.js 5 Dec 2002 00:21:45 -0000 1.4
+++ luceneQueryConstructor.js 11 Dec 2002 03:29:05 -0000 1.5
@@ -119,7 +119,7 @@
var temp = inputString;
// Replace whitespace with a single space
- var pattern = /\s/ig;
+ var pattern = /\s+/ig;
temp = temp.replace(pattern, " ");
// Trim
--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic