Changeset 19838 for lang/ruby

Show
Ignore:
Timestamp:
09/24/08 23:25:57 (2 months ago)
Author:
drry
Message:
  • .jpeg の重複を除去しました。
  • ほか。
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/misc/fitview.rb

    r19702 r19838  
    2424WIDTH = 1024 
    2525HEIGHT = 768 
    26  
    27 EXTS = ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.jpeg'] 
     26j 
     27EXTS = %w[png jpg jpeg gif bmp].map{|ext| ".#{ext}" } 
    2828 
    2929FONTS_PATH = ['c:\hoge\sys\mplus_j12r.bdf', 'c:\hoge\sys\mplus_f12r.bdf'] 
     
    5757    end 
    5858    entries = Dir.entries('.').reject!{|x| 
    59         !EXTS.index(File.extname(x)) 
     59        !EXTS.include?(File.extname(x).downcase) 
    6060    } 
    6161