chmln / handlr

A better xdg-utils
MIT License
633 stars 25 forks source link

Panic when using '<' or '>' characters in a commented line in mimeapps.list #59

Open adolfocorreia opened 2 years ago

adolfocorreia commented 2 years ago

When there is a '<' or '>' character in a commented line in mimeapps.list, I get the following panic message.

Panic message:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseApps(Error { variant: ParsingError { positives: [name_char], negatives: [] }, location: Pos(981), line_col: Pos((32, 2)), path: None, line: "#>␊", continued_line: None })', src/apps/user.rs:12:65

Version: 0.6.4