From 1723278aae786b9511ec7e487e736d2d9747beda Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 30 Dec 2020 13:51:07 +0100 Subject: Add additional spelling checks --- qutebrowser/utils/urlmatch.py | 2 +- scripts/dev/misc_checks.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qutebrowser/utils/urlmatch.py b/qutebrowser/utils/urlmatch.py index e4e4984db..527d3403d 100644 --- a/qutebrowser/utils/urlmatch.py +++ b/qutebrowser/utils/urlmatch.py @@ -125,7 +125,7 @@ class UrlPattern: def _fixup_pattern(self, pattern: str) -> str: """Make sure the given pattern is parseable by urllib.parse.""" - if pattern.startswith('*:'): # Any scheme, but *:// is unparseable + if pattern.startswith('*:'): # Any scheme, but *:// is unparsable pattern = 'any:' + pattern[2:] schemes = tuple(s + ':' for s in self._SCHEMES_WITHOUT_HOST) diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py index ad446412c..4b5699086 100644 --- a/scripts/dev/misc_checks.py +++ b/scripts/dev/misc_checks.py @@ -161,7 +161,8 @@ def check_spelling(args: argparse.Namespace) -> Optional[bool]: 'exitted', 'mininum', 'resett?ed', 'recieved', 'regularily', 'underlaying', 'inexistant', 'elipsis', 'commiting', 'existant', 'resetted', 'similarily', 'informations', 'an url', 'treshold', - 'artefact', 'an unix', 'an utf', 'an unicode'} + 'artefact', 'an unix', 'an utf', 'an unicode', 'unparseable', + 'dependancies', 'convertable', 'chosing', 'authentification'} # Words which look better when splitted, but might need some fine tuning. words |= {'webelements', 'mouseevent', 'keysequence', 'normalmode', -- cgit v1.2.3-54-g00ecf