Skip to main content

approves

Function approves 

pub fn approves(answer: &str) -> bool
Expand description

Whether a person’s answer to an approval is a yes: one of yes, y, approve, approved, allow, ok, okay, without regard to case, surrounding space or a final . or !. Anything else is a no (ADR 0050, decision 12): a call runs only on a clear yes, and the words of any other answer are the reason the call is refused with.