camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Nikodím (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-10095) bug in "remove whitespace noise from uri"
Date Tue, 28 Jun 2016 08:10:57 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15352559#comment-15352559
] 

Michal Nikodím edited comment on CAMEL-10095 at 6/28/16 8:10 AM:
-----------------------------------------------------------------

wrong: {noformat} String changed = value.replaceAll("\\s{2,}", "");  //replace 2 or more whitespaces
with nothing {noformat}
correct: {noformat} String changed = value.replaceAll("\\s{2,}", " "); //replace 2 or more
whitespaces with one space {noformat}


was (Author: michal.nikodim@topmonks.com):
wrong: {noformat} String changed = value.replaceAll("\\s{2,}", "");  //replace 2 or more whitespace
with nothing {noformat}
correct: {noformat} String changed = value.replaceAll("\\s{2,}", " "); //replace 2 or more
whitespace with one space {noformat}

> bug in "remove whitespace noise from uri"
> -----------------------------------------
>
>                 Key: CAMEL-10095
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10095
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-blueprint, camel-spring
>    Affects Versions: 2.17.1
>            Reporter: Michal Nikodím
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.16.4, 2.17.3, 2.18.0
>
>
> in:
> {noformat}org.apache.camel.spring.handler.CamelNamespaceHandler.doBeforeParse(Node){noformat}
> on row 107 is:
> {noformat}String changed = value.replaceAll("\\s{2,}", "");{noformat}
> but it removes all the white chars that are in an even number (2,4,6,8 etc)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message