Preparing search index...
    • Parses an ingredient display string into its components

      Extracts quantity, unit, name, and optional note from a formatted ingredient string using the standard separators defined in typography.

      Supports both old format (without note) and new format (with note):

      • Old: "100@@g--Rice"
      • New: "100@@g--Rice%%For the sauce"

      Parameters

      • ingredientStr: string

        Formatted string like "100@@g--Rice" or "100@@g--Rice%%For the sauce"

      Returns { quantity: string; unit: string; name: string; note: string }

      Object with quantity, unit, name, and note strings