Skip to main content

parse

Function parse 

Source
pub fn parse(raw: &str) -> Parsed
Expand description

Read a reply. Case is ignored for the prefix and for SKIP, as is trailing punctuation on SKIP. The text after ANSWER: must be one line, and is cleaned by sanitize_ambient_text (wrapping quotes and fences, a filler opener): the CLI sanitizes the whole reply, whose start is now the prefix, so that pass no longer reaches the answer itself.