commit 4e44306e8c10fcea59f6927035ce9b956d4140e9
parent 33476f6a3b5688c80b8b845d37b322edd3440c12
Author: George Angelopoulos <george@usermod.net>
Date: Wed, 23 Apr 2014 17:04:54 +0300
keepassx2pass: handle forward slash '/' in titles
Without this, a forward slash in the title creates a new directory
in the password-store. This replaces forward slashes with dashes.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/importers/keepassx2pass.py b/contrib/importers/keepassx2pass.py
@@ -26,7 +26,7 @@ def space_to_camelcase(value):
def cleanTitle(title):
# make the title more command line friendly
- title = re.sub("(\\|\||\(|\))", "-", title)
+ title = re.sub("(\\|\||\(|\)|/)", "-", title)
title = re.sub("-$", "", title)
title = re.sub("\@", "At", title)
title = re.sub("'", "", title)