mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
fix(dict): Don't correct dBA
I went with the direct unit which will be considered and identifier by the casing, rather than also allowing this as a word. Fixes #997
This commit is contained in:
parent
56df0bd8d6
commit
ee32d77aba
2 changed files with 2 additions and 9 deletions
|
@ -54,6 +54,7 @@ impl BuiltIn {
|
|||
fn correct_ident_with_dict<'s>(&self, ident: &str) -> Option<Status<'s>> {
|
||||
match ident {
|
||||
"O_WRONLY" => Some(Status::Valid),
|
||||
"dBA" => Some(Status::Valid),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,4 @@
|
|||
bin.name = "typos"
|
||||
stdin = ""
|
||||
stdout = """
|
||||
error: `BA` should be `BY`, `BE`
|
||||
--> ./sample.txt:1:21
|
||||
|
|
||||
1 | Audio volume: 23.6 dBA
|
||||
| ^^
|
||||
|
|
||||
"""
|
||||
stdout = ""
|
||||
stderr = ""
|
||||
status.code = 2
|
||||
|
|
Loading…
Reference in a new issue