fix: include hash fragment (#key) in sshx URL regex
This commit is contained in:
parent
695490c90c
commit
d25b984eac
|
|
@ -17,7 +17,7 @@ _sshx_pid = None
|
||||||
_sshx_log = "/tmp/sshx_link.log"
|
_sshx_log = "/tmp/sshx_link.log"
|
||||||
_sshx_pid_file = "/tmp/sshx_link.pid"
|
_sshx_pid_file = "/tmp/sshx_link.pid"
|
||||||
|
|
||||||
LINK_RE = re.compile(r"https://sshx\.io/s/[A-Za-z0-9_-]+")
|
LINK_RE = re.compile(r"https://sshx\.io/s/[A-Za-z0-9_-]+(?:#[A-Za-z0-9_-]+)?")
|
||||||
|
|
||||||
|
|
||||||
def _ensure_sshx() -> bool:
|
def _ensure_sshx() -> bool:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue