mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-08 21:25:32 +02:00
Fix URL detection not working for urls of the form scheme:///url
Fixes #2292
This commit is contained in:
@@ -238,6 +238,9 @@ class TestDataTypes(BaseTest):
|
||||
lf.set_text(t, 0, len(t), C())
|
||||
return lf
|
||||
|
||||
l0 = create('file:///etc/test')
|
||||
self.ae(l0.url_start_at(0), 0)
|
||||
|
||||
for trail in '.,]>)\\':
|
||||
lx = create("http://xyz.com" + trail)
|
||||
self.ae(lx.url_end_at(0), len(lx) - 2)
|
||||
|
||||
Reference in New Issue
Block a user