lib/lhj/command/trans.rb in lhj-tools-0.1.36 vs lib/lhj/command/trans.rb in lhj-tools-0.1.37
- old
+ new
@@ -24,10 +24,11 @@
def handle
handler_files
end
def handler_files
- Dir.glob("#{@current_path}/**/*.{#{@file_type}}").each do |f|
+ search_type = @file_type.gsub('.', '')
+ Dir.glob("#{@current_path}/**/*.{#{search_type}}").each do |f|
handler_file f
end
end
def handler_file(file)