Matches a string against a wildcard pattern.
String to match
Wildcard pattern
True if the string matches the wildcard pattern
matchRule('foo123', 'foo*') // truematchRule('123foo123', '*foo*') // true Copy
matchRule('foo123', 'foo*') // truematchRule('123foo123', '*foo*') // true
Matches a string against a wildcard pattern.