Closed toshimaru closed 7 years ago
I agree this is a glitch, but there is no obvious solution
irb(main):007:0> MIME::Types.type_for("a.txt")[0].extensions[0]
=> "txt"
irb(main):008:0> MIME::Types.type_for("a.c")[0].extensions[0]
=> "txt"
Will fix it so we always at least return the first extension correctly
:cool::+1:
According to README, it says:
But I tried it on my irb, it returns different string.
I expected
"txt"
returned, but it doesn't.