fixed regex check forn non-js files
Merge pull request #2 from b-e/master

fixed regex check forn non-js files