[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] case-sensitiv File-extensions-query

CAUTION: This e-mail originated outside the University of Southampton.


i am wondering why ist the extensions-test in lib/cfg.d/media_info.pl case-sensitive,

( $filename =~ /\.(pdf|doc|docx|odt)$/ ) etc.

and not like:

( $filename =~ /\.(pdf|doc|docx|odt)$/i ) etc.

we get files with both extensions, [NAME].pdf and [NAME].PDF and now they are marked as in different Format.

[NAME].pdf will be format=Text
[NAME].PDF will be format=Other

is it accidentally or dose it have a reason that i don?t recognise?

Tanks & have a great weekend