(values: &[Box<dyn Value>])
| 20 | } |
| 21 | |
| 22 | fn commit_conventional(values: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 23 | let text = values[0].as_text().unwrap(); |
| 24 | let split: Vec<&str> = text.split(':').collect(); |
| 25 | let value = if split.len() == 1 { "" } else { split[0] }.to_string(); |
| 26 | Box::new(TextValue::new(value)) |
| 27 | } |