ellamaolson / ngMigration-Assistant

An analysis tool to determine which migration path from AngularJS to Angular is right for you.
198 stars 24 forks source link

fix(analysisTool): verify path is a file #12

Closed liorcode closed 5 years ago

liorcode commented 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.

ellamaolson commented 5 years ago

Good catch, thanks for submitting a PR.