You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ryan Walsh (JIRA)" <ji...@apache.org> on 2015/09/22 22:52:04 UTC
[jira] [Updated] (DIGESTER-183) Match fails on trailing *
[ https://issues.apache.org/jira/browse/DIGESTER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Walsh updated DIGESTER-183:
--------------------------------
Attachment: SimpleRegexMatcher_Trailing_asterisk.patch
this does a simple check if the next character in the regexPattern would have been a '*' given the basePattern is the same otherwise
> Match fails on trailing *
> -------------------------
>
> Key: DIGESTER-183
> URL: https://issues.apache.org/jira/browse/DIGESTER-183
> Project: Commons Digester
> Issue Type: Bug
> Affects Versions: 3.2
> Reporter: Ryan Walsh
> Attachments: SimpleRegexMatcher_Trailing_asterisk.patch
>
>
> Match function kicks out if basePattern.length < regexPattern.length when regexPattern only has a single trailing *
> For example:
> basePattern: 20150926|A|ABC|10
> regexPattern: 20150926|A|ABC|10*
> This should match since the spec says * ' matches any sequence of none, one or more characters'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)