Body: Altered the shouldExclude function to strictly match name with the
given pattern, instead of merely checking if name includes the pattern.
This change prevents inadvertent exclusions when a pattern happens to
form a part of a string unexpectedly, thus improving the function's
string patterns exactly
Body: Altered the shouldExclude function to strictly match name with the given pattern, instead of merely checking if name includes the pattern. This change prevents inadvertent exclusions when a pattern happens to form a part of a string unexpectedly, thus improving the function's