pub fn without_code_spans(text: &str) -> StringExpand description
A record id inside a backticked code span is being shown, not cited: a message that
writes I9999 — Gone from the model is illustrating the shape of a reference, and the
layer is not expected to hold it. Blanking the spans before the scan keeps a real
citation in prose readable while an example stops being one.
use majordomus_cli::commit::verdict::without_code_spans;
assert_eq!(without_code_spans("names `I9999` here"), "names here");
assert_eq!(without_code_spans("names I9999 here"), "names I9999 here");