Removed matches_wildcard_pattern() and integrated match_pattern() into attributes_to_search_on(), updated test cases

This commit is contained in:
Lucas Black
2025-05-18 20:24:52 -07:00
parent 3fbe1df770
commit 13b607bd68
3 changed files with 13 additions and 77 deletions

View File

@ -50,7 +50,7 @@ impl AttributePatterns {
///
/// * `pattern` - The pattern to match against.
/// * `str` - The string to match against the pattern.
fn match_pattern(pattern: &str, str: &str) -> PatternMatch {
pub fn match_pattern(pattern: &str, str: &str) -> PatternMatch {
// If the pattern is a wildcard, return Match
if pattern == "*" {
return PatternMatch::Match;