lib/whois/scanners/base_iisse.rb in whois-parser-1.2.0 vs lib/whois/scanners/base_iisse.rb in whois-parser-2.0.0
- old
+ new
@@ -21,11 +21,11 @@
end
tokenizer :scan_disclaimer do
if @input.match?(/# Copyright/)
lines = []
- while @input.scan(/#(.*)\n\n?/)
- lines << @input[1].strip unless @input[1].strip == ""
+ while @input.scan(/#(.*)\n\n?/) # rubocop:disable Style/WhileUntilModifier
+ lines << @input[1].strip if @input[1].strip != ""
end
@ast["field:disclaimer"] = lines.join(" ")
end
end