mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
Merge pull request #1146 from epage/aline
fix(dict): Prefer correcting alingment to alignment
This commit is contained in:
commit
b0c364bcdf
3 changed files with 5 additions and 5 deletions
4
crates/typos-dict/assets/words.csv
vendored
4
crates/typos-dict/assets/words.csv
vendored
|
@ -2452,8 +2452,8 @@ alimunium,aluminium
|
|||
aling,aline,along,ailing,sling
|
||||
alinged,alined
|
||||
alinging,aligning
|
||||
alingment,alinement
|
||||
alingments,alinements
|
||||
alingment,alignment
|
||||
alingments,alignments
|
||||
alings,alines,slings
|
||||
alinment,alignment
|
||||
alinments,alignments
|
||||
|
|
Can't render this file because it is too large.
|
|
@ -225440,8 +225440,8 @@ pub static WORD_ALI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
|
|||
&["aline", "along", "ailing", "sling"],
|
||||
&["alined"],
|
||||
&["aligning"],
|
||||
&["alinement"],
|
||||
&["alinements"],
|
||||
&["alignment"],
|
||||
&["alignments"],
|
||||
&["alines", "slings"],
|
||||
&["alignment"],
|
||||
&["alignments"],
|
||||
|
|
|
@ -227,7 +227,7 @@ fn find_best_match<'c>(
|
|||
#[allow(clippy::single_match)]
|
||||
match (typo, correction) {
|
||||
// Picking the worst option due to a letter swap being an edit distance of two
|
||||
("alinging", "aligning") => {
|
||||
("alinging", "aligning") | ("alingment", "alignment") | ("alingments", "alignments") => {
|
||||
return None;
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Reference in a new issue