You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Amila Maharachchi (Commented) (JIRA)" <ji...@apache.org> on 2011/12/12 06:56:30 UTC
[jira] [Commented] (SYNAPSE-827) Switch mediator matching the
complete input with the provided regex (instead of a subsequence)
[ https://issues.apache.org/jira/browse/SYNAPSE-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167366#comment-13167366 ]
Amila Maharachchi commented on SYNAPSE-827:
-------------------------------------------
Reason for this is using Matcher.matches() method instead of the Matcher.find() method. matches() compare the complete input string with the regex. But find() tries to find a subsequence of the input string which matches the regex.
> Switch mediator matching the complete input with the provided regex (instead of a subsequence)
> ----------------------------------------------------------------------------------------------
>
> Key: SYNAPSE-827
> URL: https://issues.apache.org/jira/browse/SYNAPSE-827
> Project: Synapse
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.1
> Reporter: Amila Maharachchi
> Assignee: Kasun Indrasiri
> Attachments: SYNAPSE-827.patch
>
>
> When we provide an input and a regex to match by the Switch mediator, it matches the complete input with the regex instead of a subsequence. For example if the input is ABC and the regex is AB, it will not consider as a match. But ideally it is a match.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org