Skip to main content

split_details

Function split_details 

Source
pub fn split_details(message: &str) -> (&str, Option<&str>)
Expand description

Split a message that may contain a DETAILS_SEPARATOR into summary and optional details.

Returns (summary, Some(details)) if the separator is present, or (message, None) if not.