@fingerprintjs/url-matcher
    Preparing search index...

    Function matchesPatterns

    • Matches a given URL against a list of string patterns to determine if it adheres to any specified pattern.

      Parameters

      • url: URL

        The URL object that needs to be tested against the patterns.

      • patterns: string[]

        An array of string patterns that define the routes to match against.

      Returns boolean

      Returns true if the URL matches any of the given patterns; otherwise, returns false.

      If provided URL protocol is not http: or https:.

      If one of the provided patterns contains a query string or infix wildcard.