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

    Function buildTrailingContextRegex

    • Builds a regex that matches any of the given words at the end of a string, preceded by whitespace. Used for trailing quantity context like "from" or "of".

      Parameters

      • words: string[]

      Returns RegExp