wildstar
    Preparing search index...

    Function matches

    • Checks if a path matches a pattern with wildcards, without returning captures

      Parameters

      • source: string

        The input path to match

      • pattern: string

        The pattern path, may contain *, *+, **, **+ wildcards

      • OptionalcharCompare: CharCompare

        Optional custom code point comparison function

      Returns boolean

      True if the pattern matches, false otherwise

      matches('hello/dear/world', 'hello/**+/world') // returns true