diff options
Diffstat (limited to 'qutebrowser/utils/urlmatch.py')
-rw-r--r-- | qutebrowser/utils/urlmatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/utils/urlmatch.py b/qutebrowser/utils/urlmatch.py index 55b0037dc..0d3f76cb8 100644 --- a/qutebrowser/utils/urlmatch.py +++ b/qutebrowser/utils/urlmatch.py @@ -128,7 +128,7 @@ class UrlPattern: # FIXME This doesn't actually strip the hostname correctly. if (pattern.startswith('file://') and not pattern.startswith('file:///')): - pattern = 'file:///' + pattern[len("file://"):] + pattern = 'file:///' + pattern.removeprefix("file://") return pattern |