lib/junoser/js_ruler.rb in junoser-0.3.7 vs lib/junoser/js_ruler.rb in junoser-0.3.8

- old
+ new

@@ -14,10 +14,12 @@ rule_header << rule.gsub(/^/, ' ') << rule_footer end def rule str = @rule.read - str = str.split(/\n/).map {|l| format(process_line(l))}.join("\n") + str = str.split(/\n/).map {|l| + format(process_line(l)) unless l =~ /^ *#/ # Skip additional comment lines + }.compact.join("\n") finalize(str) end private