On Thursday 04 December 2008 10:42, j16sdiz at freenetproject.org wrote:
> Author: j16sdiz
> Date: 2008-12-04 10:42:09 +0000 (Thu, 04 Dec 2008)
> New Revision: 24035
> 
> Modified:
>    trunk/plugins/XMLLibrarian/XMLLibrarian.java
> Log:
> bug 1714, changes for XMLLibrarian 
> 
> 
> Modified: trunk/plugins/XMLLibrarian/XMLLibrarian.java
> ===================================================================
> --- trunk/plugins/XMLLibrarian/XMLLibrarian.java      2008-12-04 09:08:34 UTC 
(rev 24034)
> +++ trunk/plugins/XMLLibrarian/XMLLibrarian.java      2008-12-04 10:42:09 UTC 
(rev 24035)
> @@ -186,7 +186,6 @@
>  
>               StringBuilder out = new StringBuilder();
>               String search = request.getParam("search");
> -             search = search.toLowerCase();
>               String stylesheet = request.getParam("stylesheet", null);
>               String choice = request.getParam("choice");
>  
> @@ -556,7 +555,7 @@
>        * @param stylesheet
>        */
>       private void searchStr(StringBuilder out,String search,String 
indexuri,String stylesheet) throws Exception{
> -
> +             search = search.toLowerCase();
>               if (search.equals("")) {
>                       out.append("Give a valid string to search\n");
>                       return;
> @@ -567,7 +566,7 @@
>                       // Get search result
>                       out.append("<p>Index Site: 
> "+HTMLEncoder.encode(indexuri)+"</p>");
>                       DEFAULT_INDEX_SITE = indexuri;
> -                     String searchWords[] = search.split(" ");
> +                     String[] searchWords = search.split("[^\\p{L}\\{N}]");

Again, \{N} isn't documented by java...

>                       // Return results in order.
>                       LinkedHashSet hs = new LinkedHashSet();
>                       Vector keyuris;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20081204/bfd1508f/attachment.pgp>

Reply via email to