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

    Function buildTrailingQuantityRegex

    • Builds a regex to capture trailing quantity and unit of measure, using the provided range separator words.

      Matches are read through the named groups qty1, sep, qty2, and uom — never by index. numericRegexAnywhere is inlined twice and user range separators may contain capture groups of their own, so every index here is unstable by construction.

      The uom body is uomWordSource, shared with firstWordRegEx; it is group-free, so inlining it is index-neutral.

      Parameters

      • rangeSeparators: readonly (string | RegExp)[]

      Returns RegExp