Checks if a path matches a pattern with wildcards, without returning captures
The input path to match
The pattern path, may contain *, *+, **, **+ wildcards
Optional
Optional custom code point comparison function
True if the pattern matches, false otherwise
matches('hello/dear/world', 'hello/**+/world') // returns true Copy
matches('hello/dear/world', 'hello/**+/world') // returns true
Checks if a path matches a pattern with wildcards, without returning captures