Mercurial > hg > octave-nkf
changeset 18317:4718af222d9d
image/imformats.m: be case insensitive about file extension.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Thu, 16 Jan 2014 17:54:59 +0000 |
parents | 9b163d6c1de7 |
children | 2ed9498e4a74 |
files | scripts/image/imformats.m |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/imformats.m +++ b/scripts/image/imformats.m @@ -266,11 +266,10 @@ endfunction function match = find_ext_idx (formats, ext) - ## FIXME: is matlab sensitive to file extensions? ## XXX: what should we do if there's more than one hit? ## Should this function prevent the addition of ## duplicated extensions? - match = cellfun (@(x) any (strcmp (x, ext)), {formats.ext}); + match = cellfun (@(x) any (strcmpi (x, ext)), {formats.ext}); endfunction function bool = isa_magick (coder, filename)