mirror of https://gitlab.com/bashrc2/epicyon
Protocol handler parsing
parent
c6e090dc98
commit
7e3d02561c
|
@ -268,6 +268,8 @@ def wellknown_protocol_handler(path: str, base_dir: str,
|
||||||
if not target.startswith('web+epicyon:'):
|
if not target.startswith('web+epicyon:'):
|
||||||
return None
|
return None
|
||||||
handle = target.split(':', 1)[1].strip()
|
handle = target.split(':', 1)[1].strip()
|
||||||
|
if handle.startswith('//'):
|
||||||
|
handle = handle[2:]
|
||||||
if handle.startswith('@'):
|
if handle.startswith('@'):
|
||||||
handle = handle[1:]
|
handle = handle[1:]
|
||||||
if '@' in handle:
|
if '@' in handle:
|
||||||
|
|
Loading…
Reference in New Issue