wildstar
    Preparing search index...

    Function matches

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

      Parameters

      • source: string

        The input string to match

      • pattern: string

        The pattern string, may contain * and *+ wildcards

      • OptionalcharCompare: CharCompare

        Optional custom character comparison function

      Returns boolean

      True if the pattern matches, false otherwise

      matches('hello', 'hell*') // returns true
      matches('world', 'w*d') // returns true
      matches('test', 'different') // returns false