From e4ac0a4f9b8a68d7af328e9366cfea187840090c Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Mon, 11 Nov 2024 11:40:15 +0100
Subject: [PATCH] remove trailing newline from password
---
main.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/main.py b/main.py
index 61cda05..eeb8884 100644
--- a/main.py
+++ b/main.py
@@ -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)
--
GitLab