lib/oxidized/model/aireos.rb in oxidized-0.25.1 vs lib/oxidized/model/aireos.rb in oxidized-0.26.0
- old
+ new
@@ -37,14 +37,14 @@
send "logout\n"
send "n"
end
end
- def clean cfg
+ def clean(cfg)
out = []
cfg.each_line do |line|
- next if line.match /^\s*$/
- next if line.match /rogue (adhoc|client) (alert|Unknown) [\da-f]{2}:/
+ next if line =~ /^\s*$/
+ next if line =~ /rogue (adhoc|client) (alert|Unknown) [\da-f]{2}:/
line = line[1..-1] if line[0] == "\r"
out << line.strip
end
out = out.join "\n"