lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/javascript/queryConstructor luceneQueryConstructor.js
Date Wed, 11 Dec 2002 03:29:05 GMT
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>


Mime
View raw message