[][src]Function livesplit_core::comparison::shorten

pub fn shorten(comparison: &str) -> &str

Shortens a comparison name. If the name of the comparison matches one of the comparison generators, the short name of that comparison generator is returned. Otherwise the comparison name is returned without being shortened. Additional shortening logic for other comparison names may happen in the future.