lib/Generator.rb in re_expand-0.0.2 vs lib/Generator.rb in re_expand-0.0.3
- old
+ new
@@ -112,14 +112,10 @@
if sslen > 0 then
# patstr = "(.*)\t" * (sslen-1) + "(.*)"
patstr = (["(.*)"] * sslen).join("\t")
/#{patstr}/ =~ ss.join("\t")
end
- ## next if $1 == $2
# 'set date #{$2}' のような記述の$変数にsubstringの値を代入
- File.open("/tmp/log","a"){ |f|
- f.puts "#{s}-----" + eval('%('+@commands[acceptno]+')')
- }
res[ambig] << [s, eval('%('+@commands[acceptno]+')')]
end
end
}
end