diff --git a/crates/typos-cli/src/dict.rs b/crates/typos-cli/src/dict.rs index 25e3128..e793e0d 100644 --- a/crates/typos-cli/src/dict.rs +++ b/crates/typos-cli/src/dict.rs @@ -54,6 +54,7 @@ impl BuiltIn { fn correct_ident_with_dict<'s>(&self, ident: &str) -> Option> { match ident { "O_WRONLY" => Some(Status::Valid), + "dBA" => Some(Status::Valid), _ => None, } } diff --git a/crates/typos-cli/tests/cmd/false-positives.in/sample.txt b/crates/typos-cli/tests/cmd/false-positives.in/sample.txt new file mode 100644 index 0000000..be21ae4 --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/sample.txt @@ -0,0 +1 @@ +Audio volume: 23.6 dBA