Mercurial > octave
diff scripts/image/imformats.m @ 18292: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 | 3ef7d28833f3 |
children | 1589b2fc74ae |
line wrap: on
line diff
--- a/scripts/image/imformats.m Thu Jan 16 10:21:02 2014 -0800 +++ b/scripts/image/imformats.m Thu Jan 16 17:54:59 2014 +0000 @@ -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)