bin/review-validate in review-5.3.0 vs bin/review-validate in review-5.4.0

- old
+ new

@@ -39,11 +39,11 @@ elsif line =~ /\A(\d+\.)\s+/ # number unless %w[list emlist listnum emlistnum cmd image table].include?(block) @logger.warn "#{ln}: found '#{$1}' without the head space. Is it correct?" end - elsif line =~ /\A\*\s+/ + elsif /\A\*\s+/.match?(line) # itemize unless %w[list emlist listnum emlistnum cmd image table].include?(block) @logger.warn "#{ln}: found '*' without the head space. Is it correct?" end elsif line =~ /\A\s+(\d+\.)\s+/ && line =~ /\A\s+\*\s+/ @@ -51,10 +51,10 @@ @logger.warn "#{ln}: found itemized list or numbered list in #{block}. Is it correct?" end elsif block == 'table' next if line.start_with?('#@') - if line !~ /\A-----/ + unless line.start_with?('-----') # table colcount = line.split("\t").size if maxcolcount == 0 maxcolcount = colcount end