Words like 'br0' are common and usually references some code or
database objects that should not be targets for spell checking.
So, it's better to skip all the words that has digits inside instead
of ones that starts with numbers.
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: William Tu <u9012063@gmail.com>
strword[1:].islower()):
skip = True
- # skip words that start with numbers
- if strword.startswith(tuple('0123456789')):
+ # skip words containing numbers
+ if any(check_char.isdigit() for check_char in strword):
skip = True
if not skip: