Skip to main content

names_milestone

Function names_milestone 

Source
pub fn names_milestone(value: &str, title: &str) -> bool
Expand description

True when the trailer Milestone: value names the milestone title. Two waves match by their number, so the name of a wave can change. Each other milestone matches by its whole title (01M518A04JWYJE5FA1VR309SAA).

use hygiene::names_milestone;

let renamed = "Wave 28: cloud, fixes that slow the work";
assert!(names_milestone("Wave 28", renamed));
assert!(names_milestone("Wave 28: after 1.4.0", renamed), "the title before the rename");
assert!(!names_milestone("Wave 27: after 1.4.0", renamed), "another wave");
assert!(names_milestone("Backlog", "Backlog"));
assert!(!names_milestone("Wave 28", "Backlog"));