parse-ingredient - v3.0.0
    Preparing search index...

    Function buildLeadingQuantityPrefixRegex

    • Builds a regex that matches approximation/modifier prefixes at the start of quantity expressions (e.g., "about", "ca.", "bis zu"), followed by optional whitespace.

      Parameters

      • patterns: readonly (string | RegExp)[]

      Returns RegExp | null