Function todo_lib::todotxt::split_tag

source ·
pub fn split_tag(s: &str) -> Option<(&str, &str)>
Expand description

Split tag into its name and value if possible. Input string must be a correct tag: “name:value”, where name contains only alpha-numeric characters(Unicode letters are supported), and value is a non-empty string. If a string is incorrect tag, the function returns None.