CGenie / alfred-pass

Alfred 2 workflow for pass
GNU General Public License v3.0
88 stars 33 forks source link

remove rstrip as it can strip valid characters from password f… #6

Closed andyfase closed 7 years ago

andyfase commented 8 years ago

Example.

Password in file "andy/testgroup"

Before this change ./pass-filter.py testgrou Output:

<?xml version="1.0"?>
<items>

    <item uid="andy/testgrou" arg="andy/testgrou" autocomplete="andy/testgrou">
        <title>testgrou</title>
        <subtitle>andy/testgrou</subtitle>
    </item>

</items>

After change ./pass-filter.py testgrou Output:

<?xml version="1.0"?>
<items>

    <item uid="andy/testgroup" arg="andy/testgroup" autocomplete="andy/testgroup">
        <title>testgroup</title>
        <subtitle>andy/testgroup</subtitle>
    </item>

</items>

Notice the 'p' at the end of "group" is being stripped. This is due to the use of rstrip.

CGenie commented 7 years ago

Thank you. Sorry it took so long, I had it in my memory and then forgot about it...