parse-ingredient - v2.2.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: (string | RegExp)[]

      Returns RegExp | null