pub fn regularize_format(format: &str) -> Option<&'static str>Expand description
The format a name, an abbreviation or an extension stands for, with or
without its dot and with anything after a further dot ignored: music21’s
Converter.regularizeFormat.
use music21::common::formats::regularize_format;
assert_eq!(regularize_format("mxl"), Some("musicxml"));
assert_eq!(regularize_format("lily.png"), Some("lilypond"));
assert_eq!(regularize_format("blah"), None);