ext-regex
Regular expression for matching file extensions. Matches single and/or multiple file extensions, like
.min.js
.
npm
Install withnpm i ext-regex --save
Usage
var extRegex = ; 'a/b/c.min.js';//=> ['.min.js', '.js', 'js']; 'a/b/c/.gitignore';//=> ['.gitignore', '.gitignore', 'gitignore'] 'a/b/c';//=> null 'a/b/c.js';//=> true
Run tests
Install dev dependencies:
node i -d && mocha
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 12, 2015.