krivoox / draw-folder-structure

MIT License
13 stars 2 forks source link

Fix: Modify shouldExclude function to match #12

Closed krivoox closed 10 months ago

krivoox commented 10 months ago

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