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 @utils/TextParsing.
@utils/TextParsing
Supports both old format (without note) and new format (with note):
Formatted string like "100@@g--Rice" or "100@@g--Rice%%For the sauce"
Object with quantity, unit, name, and note strings
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
@utils/TextParsing.Supports both old format (without note) and new format (with note):