Skip to main content

text_matches

Function text_matches 

Source
fn text_matches(anchor: &ReviewAnchor, text: &str) -> bool
Expand description

Whether text is the line anchor was placed on. Anchors captured before normalisation hold the raw hash, so both forms are accepted; such an anchor keeps its old exact-match behaviour until it is rewritten.