Skip to content

Conversation

@Claudenw
Copy link
Contributor

@Claudenw Claudenw commented Oct 19, 2024

Fix for #276 and #279 on V4

This change:

  • Adds a public String source() method to MatchPattern to return the "source" instance value.
  • Makes public MatchPattern method static String[] tokenizePathToString(String path, String separator)
  • Adds public List sources() method to MatchPatterns that to return a list of MatchPattern.source() for each enclosed pattern.
  • Makes public SelectorUtils static boolean isAntPrefixedPattern() method
  • Makes public SelectorUtils static boolean isRegexPrefixedPattern() method
  • Adds a SelectorUtils public static String extractPattern(final string pattern, final String separator) method to extract a simplified pattern without the Ant or Regex prefix and with the Ant path modified by a call to toOSRelatedPath to ensure that it is properly formatted.

@Claudenw Claudenw changed the title V4 rat changes V4 changes to make external usage easier Nov 4, 2024
@slachiewicz slachiewicz merged commit 46d98a6 into codehaus-plexus:master Nov 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants