Skip to content

SelectorUtils does not recognizes "%ant[]" or "%regex[]" patterns with a single character. #279

Closed
@Claudenw

Description

@Claudenw

both isAntPrefixedPattern() and isRegexPrefixedPattern have a length requirement for the pattern to be greater than 1 character in length. I think this is an error and should only require that the pattern be at least 1 character in length.

The code from the methods looks like

pattern.length() > HANDLER_PREFIX.length() + HANDLER_SUFFIX.length() + 1

I think that either the > should be >= or the + 1 should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions