Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@Claudenw

Description

@Claudenw
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.