lib/spiderfw/i18n/shtml_parser.rb in spiderfw-0.6.21 vs lib/spiderfw/i18n/shtml_parser.rb in spiderfw-0.6.22

- old
+ new

@@ -19,16 +19,16 @@ while scanner.scan_until(Spider::TemplateBlocks::GettextRegexp) str = scanner.matched str =~ Spider::TemplateBlocks::GettextRegexp found = false ary.each do |msg| - if (msg[0] == $1) + if (msg[0] == $2) msg << "#{file}:#{cnt}" found = true break end end - ary << [$1, "#{file}:#{cnt}"] unless found + ary << [$2, "#{file}:#{cnt}"] unless found end end f.close return ary end \ No newline at end of file