Skip to content

Commit

Permalink
In [image] search for upper and lower case of file suffixes, in predi…
Browse files Browse the repository at this point in the history
…ctable order
  • Loading branch information
jonjensen committed Apr 28, 2016
1 parent 8123876 commit 4554728
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/SystemTag/image.tag
@@ -1,4 +1,4 @@
# Copyright 2002-2011 Interchange Development Group and others
# Copyright 2002-2016 Interchange Development Group and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -9,7 +9,7 @@ UserTag image Order src
UserTag image AttrAlias geometry makesize
UserTag image AttrAlias resize makesize
UserTag image AddAttr
UserTag image Version 1.25
UserTag image Version 1.26
UserTag image Routine <<EOR
sub {
my ($src, $opt) = @_;
Expand Down Expand Up @@ -132,6 +132,9 @@ sub {
my @trylist;
if ($try and $try !~ /$filere/) {
@trylist = map { "$try.$_" } @imagesuffixes;
push @trylist, map { $try . '.' . uc($_) } @imagesuffixes;
my %uniq = map { $_ => undef } @trylist;
@trylist = sort keys %uniq;
} else {
@trylist = ($try);
}
Expand Down

0 comments on commit 4554728

Please sign in to comment.