Skip to content

Commit

Permalink
Fix filename detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Nov 14, 2011
1 parent c7c7f12 commit 0afa4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdxplay
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ end

MDXMini.init

Dir.glob(ARGV).select {|f| f.downcase =~ /.mdx/}.each {|song| MDXMini.process song}
Dir.glob(ARGV).select {|f| File.extname(f).downcase == '.mdx'}.each {|song| MDXMini.process song}

IO.console.ioflush
puts ANSI.reset
Expand Down

0 comments on commit 0afa4ac

Please sign in to comment.