Skip to content

Commit

Permalink
Skip lines with only whitespace in .dic file
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Sep 7, 2024
1 parent d1e4461 commit 7611e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aff/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub(crate) fn parse<'aff, 'dic, S: BuildHasher + Clone>(
while !lines.is_finished() {
lines.advance_line();

let Some(line) = lines.line().map(|l| l.trim()) else {
let Some(line) = lines.line().map(|l| l.trim()).filter(|l| !l.is_empty()) else {
// Empty lines are skipped.
continue;
};
Expand Down

0 comments on commit 7611e6d

Please sign in to comment.