summaryrefslogtreecommitdiff
path: root/contrib/importers
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcontrib/importers/lastpass2pass.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/importers/lastpass2pass.rb b/contrib/importers/lastpass2pass.rb
index 654101b..bf46c8c 100755
--- a/contrib/importers/lastpass2pass.rb
+++ b/contrib/importers/lastpass2pass.rb
@@ -53,7 +53,7 @@ class Record
def name
s = ""
s << @grouping + "/" unless @grouping.empty?
- s << @name
+ s << @name unless @name == nil
s.gsub(/ /, "_").gsub(/'/, "")
end
@@ -99,10 +99,10 @@ entries.each do |e|
password = args.shift
fav = args.pop
grouping = args.pop
- grouping = DEFAULT_GROUP if grouping.empty?
+ grouping = DEFAULT_GROUP if grouping == nil
name = args.pop
extra = args.join(",")[1...-1]
-
+
records << Record.new(name, url, username, password, extra, grouping, fav)
end
puts "Records parsed: #{records.length}"