typos
typos copied to clipboard
UUIDs adjacent to text `-_` are not identified
A file that contains the following string in the file
TextArea_111111111111_99999999-6caf-3d9b-17f1-4282b524d348
I get the following error:
error: `caf` should be `calf`
--> a.txt:1:33
|
1 | TextArea_111111111111_99999999-6caf-3d9b-17f1-4282b524d348
| ^^^
|
Unfortunately I can't seem to make the error go away using extend-ignore-identifiers-re
, I have tried the following patterns:
\b[a-zA-Z0-9\-]+_[a-zA-Z0-9\-]+_[a-zA-Z0-9\-]+\b
# Or
[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}
But it seems to only match from caf
ignoring the 6
so both patterns fail.
I'm using typos-cli 1.16.18
.
The following seems to work for me
[default]
extend-ignore-re = ["[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"]
``