Eric Foster 35b96bc934 initial commit | преди 6 години | |
---|---|---|
.. | ||
LICENSE | преди 6 години | |
README.md | преди 6 години | |
index.js | преди 6 години | |
package.json | преди 6 години |
Returns true if a string has an extglob.
npm i is-extglob --save
var isExtglob = require('is-extglob');
True
isExtglob('?(abc)');
isExtglob('@(abc)');
isExtglob('!(abc)');
isExtglob('*(abc)');
isExtglob('+(abc)');
False
Everything else...
isExtglob('foo.js');
isExtglob('!foo.js');
isExtglob('*.js');
isExtglob('**/abc.js');
isExtglob('abc/*.js');
isExtglob('abc/(aaa|bbb).js');
isExtglob('abc/[a-z].js');
isExtglob('abc/{a,b}.js');
isExtglob('abc/?.js');
isExtglob('abc.js');
isExtglob('abc/def/ghi.js');
Install dev dependencies.
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on March 06, 2015.