bin/review-validate in review-3.2.0 vs bin/review-validate in review-4.0.0
- old
+ new
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
-# Copyright (c) 2010-2017 Kenshi Muto
+# Copyright (c) 2010-2019 Kenshi Muto
#
# This program is free software
# You can distribute or modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of the GNU LGPL, see the file "COPYING".
@@ -46,10 +46,10 @@
# 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+/
- unless Tw[list emlist listnum emlistnum cmd image table].include?(block)
+ unless %w[list emlist listnum emlistnum cmd image table].include?(block)
@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\-\-\-\-\-/