Changeset 834 for trunk/dll/assoc.c


Ignore:
Timestamp:
Sep 12, 2007, 9:20:07 PM (18 years ago)
Author:
Gregg Young
Message:

Improved file filtering logic to match last extention for file associations (types) (reverse character by character matching) and optionally search for complete strings within a file name (strstr matching).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/assoc.c

    r832 r834  
    361361      }
    362362      else
    363           exclude = FALSE;
    364       if ((*p == '*') &&
    365           !((p[strlen(p) - 1]) == '*'))
     363        exclude = FALSE;
    366364        didmatch = wildcard((strchr(p, '\\') ||
    367                              strchr(p, ':')) ? datafile : file, p, FALSE);
    368       else
    369         didmatch = wildcard2((strchr(p, '\\') ||
    370365                             strchr(p, ':')) ? datafile : file, p, FALSE);
    371366      if (exclude && didmatch)
Note: See TracChangeset for help on using the changeset viewer.