Skip to content

Commit

Permalink
fix case where secret appears multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
jgogstad committed Mar 4, 2024
1 parent bf9a0d6 commit c8c2a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh-mask.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function zshaddhistory() {
if [[ $#nonempty -gt 0 ]]; then
for m in "$nonempty[@]"; do
n="${m##[\"\']}"
input="${input/${n%%[\"\']}/...}"
input="${input//${n%%[\"\']}/...}"
done

print -Sr -- "$input"
Expand Down

0 comments on commit c8c2a6b

Please sign in to comment.