1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-03-19 12:59:30 +00:00

fix bug when port is > 4 number

This commit is contained in:
Adrien Waksberg 2017-01-24 22:58:03 +01:00
parent 0458013def
commit cb409b1545

View file

@ -153,7 +153,7 @@ class Cli
data.each do |k, v|
next if k == :id or k == :otp
v[:length] = item.send(k.to_s).length + 3 if item.send(k.to_s).to_s.length >= v[:length]
v[:length] = item.send(k.to_s).to_s.length + 3 if item.send(k.to_s).to_s.length >= v[:length]
end
end
data[:id][:length] = items.length.to_s.length + 2 if items.length.to_s.length > data[:id][:length]