Skip to main content

issue_tokens

Function issue_tokens 

Source
pub fn issue_tokens(text: &str, ids: &[String]) -> Vec<String>
Expand description

The ids in a text that are issues of the plan, each once, in order of appearance.

use majordomus_cli::intent_realization::issue_tokens;
let ids = ["I1900".to_string(), "I0001".to_string()];
assert_eq!(issue_tokens("finish I1900; not XI1900 or I19000", &ids), ["I1900"]);