solarnetwork-api-core
    Preparing search index...

    Function wildcardPatternToRegExp

    • Convert a path wildcard pattern into a regular expression.

      This can be used to convert source ID wildcard patterns into regular expressions.

      Parameters

      • Optionalpat: string

        the wildcard pattern to convert into a regular expression

      Returns undefined | RegExp

      the regular expression, or undefined if pat is undefined