Skip to content
Snippets Groups Projects
Unverified Commit e4ac0a4f authored by Varac's avatar Varac
Browse files

remove trailing newline from password

parent da811598
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,7 @@ class RbwExtension(Extension):
def on_item_enter(self, data: dict) -> None:
"""Copy password for entry to clipboard."""
# logging.info("rbw extension: entry selected: id=%s", data["id"])
pw = subprocess.check_output(["rbw", "get", data["id"]]).decode("utf-8") # noqa: S607
pw = subprocess.check_output(["rbw", "get", data["id"]]).decode("utf-8").strip() # noqa: S607
return actions.copy(pw)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment