diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-11-16 01:25:12 +0100 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-11-16 01:25:12 +0100 |
commit | bafd1d76bee40cdffb18d3fdbb37b83000023dee (patch) | |
tree | 654f4a1a3bd34328a92ac157a03b22f32a553ce1 | |
parent | b2bef6af95d6e44f501c665f00309a9c04b3c1c5 (diff) | |
download | rofi-pass-bafd1d76bee40cdffb18d3fdbb37b83000023dee.tar.gz |
match for tabs and spaces
-rwxr-xr-x | rofi-pass | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -228,7 +228,7 @@ else unset helptext; mainMenu; fi typeMenu () { checkIfPass - typefield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep ': ' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ") + typefield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep -P ':[\t ]' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ") if [[ $typefield == "" ]]; then exit; elif [[ $typefield == "password" ]]; then typePass; elif [[ $typefield == "< Return" ]]; then mainMenu; @@ -238,7 +238,7 @@ typeMenu () { copyMenu () { checkIfPass - copyfield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep ': ' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ") + copyfield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep -P ':[\t ]' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ") if [[ $copyfield == "" ]]; then exit; elif [[ $copyfield == "password" ]]; then copyPass; elif [[ $copyfield == "< Return" ]]; then mainMenu; |