Closed liorcode closed 5 years ago
Before testing a file for "patterns", verify that it is a file and not a directory. Checking the suffix is not enough, because some directories have names with ".js" in the end (e.g. blob.js) which are mistaken to be files.
Good catch, thanks for submitting a PR.
Before testing a file for "patterns", verify that it is a file and not a directory. Checking the suffix is not enough, because some directories have names with ".js" in the end (e.g. blob.js) which are mistaken to be files.