Merge branch 'flvi0-master'
This commit is contained in:
commit
cd14ae2f1f
@ -137,10 +137,10 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* Peter Vilim
|
* Peter Vilim
|
||||||
* John ShaggyTwoDope Jenkins
|
* John ShaggyTwoDope Jenkins
|
||||||
* rikn00
|
* rikn00
|
||||||
|
* Patric Schmitz
|
||||||
* Martin Zimmermann
|
* Martin Zimmermann
|
||||||
* Error 800
|
* Error 800
|
||||||
* Brian Jackson
|
* Brian Jackson
|
||||||
* Patric Schmitz
|
|
||||||
* Johannes Altmanninger
|
* Johannes Altmanninger
|
||||||
* Samir Benmendil
|
* Samir Benmendil
|
||||||
* Regina Hug
|
* Regina Hug
|
||||||
|
@ -155,6 +155,7 @@ class IsUrlTests(unittest.TestCase):
|
|||||||
'deadbeef',
|
'deadbeef',
|
||||||
'31c3',
|
'31c3',
|
||||||
'http:foo:0',
|
'http:foo:0',
|
||||||
|
'foo::bar',
|
||||||
)
|
)
|
||||||
|
|
||||||
@mock.patch('qutebrowser.utils.urlutils.config', new=stubs.ConfigStub(
|
@mock.patch('qutebrowser.utils.urlutils.config', new=stubs.ConfigStub(
|
||||||
|
@ -193,7 +193,14 @@ def _has_explicit_scheme(url):
|
|||||||
Args:
|
Args:
|
||||||
url: The URL as QUrl.
|
url: The URL as QUrl.
|
||||||
"""
|
"""
|
||||||
return url.isValid() and url.scheme() and not url.path().startswith(' ')
|
|
||||||
|
# Note that generic URI syntax actually would allow a second colon
|
||||||
|
# after the scheme delimiter. Since we don't know of any URIs
|
||||||
|
# using this and want to support e.g. searching for scoped C++
|
||||||
|
# symbols, we treat this as not an URI anyways.
|
||||||
|
return (url.isValid() and url.scheme()
|
||||||
|
and not url.path().startswith(' ')
|
||||||
|
and not url.path().startswith(':'))
|
||||||
|
|
||||||
|
|
||||||
def is_special_url(url):
|
def is_special_url(url):
|
||||||
|
Loading…
Reference in New Issue
Block a user