pass_typer: Remove extra space in regex

This commit is contained in:
Adam Goldsmith 2024-03-16 20:11:44 -04:00
parent 2330bde957
commit ae080c4042

View File

@ -130,7 +130,7 @@ def select_and_type(server_match: ServerMatch) -> None:
window_name = cmd(["xdotool", "getactivewindow", "getwindowname"]).stdout.strip() window_name = cmd(["xdotool", "getactivewindow", "getwindowname"]).stdout.strip()
ssh_match = re.search( ssh_match = re.search(
":([^ ]+=[^ ]* )*(mosh|ssh) .* (?P<destination>[^ ]*)$", window_name ":([^ ]+=[^ ]* )*(mosh|ssh).* (?P<destination>[^ ]*)$", window_name
) )
if ssh_match: if ssh_match:
server_match = ServerMatch.from_destination(ssh_match.group("destination")) server_match = ServerMatch.from_destination(ssh_match.group("destination"))