parse-ingredient - v2.1.0
    Preparing search index...

    Function buildPrefixPatternRegex

    • Builds a regex that matches any of the given patterns at the start of a string, followed by whitespace. Strings are escaped and treated as literal prefixes. RegExp patterns have their source extracted and combined.

      Parameters

      • patterns: (string | RegExp)[]

      Returns RegExp