Changeset 13857 in josm for trunk/scripts


Ignore:
Timestamp:
2018-05-27T13:38:51+02:00 (7 years ago)
Author:
stoecker
Message:

see #15240 - detect another type of ImageProvider calls for in image check script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/geticons.pl

    r13384 r13857  
    4949        ++$icons{$img};
    5050      }
    51       if($l =~ /ImageProvider(?:\.get)?\(\"([^\"]*?)\"(?:, ImageProvider.ImageSizes.[A-Z]+)?\)/)
     51      if($l =~ /ImageProvider(?:\.get)?\(\"([^\"]*?)\"(?:, (?:ImageProvider\.)?ImageSizes\.[A-Z]+)?\)/)
    5252      {
    5353        my $i = $1;
     
    7474        ++$icons{$i};
    7575      }
    76       if($l =~ /ImageProvider\.get(?:IfAvailable)?\(\"(.*?)\",\s*\"(.*?)\"\s*\)/)
     76      if($l =~ /ImageProvider\.get(?:IfAvailable)?\(\"(.*?)\",\s*\"(.*?)\"(?:, (?:ImageProvider\.)?ImageSizes\.[A-Z]+)?\s*\)/)
    7777      {
    7878        my $i = "$1/$2";
Note: See TracChangeset for help on using the changeset viewer.