├── .editorconfig ├── .eslintrc.json ├── .gitattributes ├── .github └── FUNDING.yml ├── .gitignore ├── .travis.yml ├── .verb.md ├── LICENSE ├── README.md ├── appveyor.yml ├── index.js ├── package.json └── test.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | end_of_line = lf 6 | charset = utf-8 7 | indent_size = 2 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [{**/{actual,fixtures,expected,templates}/**,*.md}] 12 | trim_trailing_whitespace = false 13 | insert_final_newline = false -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ecmaFeatures": { 3 | "modules": true, 4 | "experimentalObjectRestSpread": true 5 | }, 6 | 7 | "env": { 8 | "browser": false, 9 | "es6": true, 10 | "node": true, 11 | "mocha": true 12 | }, 13 | 14 | "globals": { 15 | "document": false, 16 | "navigator": false, 17 | "window": false 18 | }, 19 | 20 | "rules": { 21 | "accessor-pairs": 2, 22 | "arrow-spacing": [2, { "before": true, "after": true }], 23 | "block-spacing": [2, "always"], 24 | "brace-style": [2, "1tbs", { "allowSingleLine": true }], 25 | "comma-dangle": [2, "never"], 26 | "comma-spacing": [2, { "before": false, "after": true }], 27 | "comma-style": [2, "last"], 28 | "constructor-super": 2, 29 | "curly": [2, "multi-line"], 30 | "dot-location": [2, "property"], 31 | "eol-last": 2, 32 | "eqeqeq": [2, "allow-null"], 33 | "generator-star-spacing": [2, { "before": true, "after": true }], 34 | "handle-callback-err": [2, "^(err|error)$" ], 35 | "indent": [2, 2, { "SwitchCase": 1 }], 36 | "key-spacing": [2, { "beforeColon": false, "afterColon": true }], 37 | "keyword-spacing": [2, { "before": true, "after": true }], 38 | "new-cap": [2, { "newIsCap": true, "capIsNew": false }], 39 | "new-parens": 2, 40 | "no-array-constructor": 2, 41 | "no-caller": 2, 42 | "no-class-assign": 2, 43 | "no-cond-assign": 2, 44 | "no-const-assign": 2, 45 | "no-control-regex": 2, 46 | "no-debugger": 2, 47 | "no-delete-var": 2, 48 | "no-dupe-args": 2, 49 | "no-dupe-class-members": 2, 50 | "no-dupe-keys": 2, 51 | "no-duplicate-case": 2, 52 | "no-empty-character-class": 2, 53 | "no-eval": 2, 54 | "no-ex-assign": 2, 55 | "no-extend-native": 2, 56 | "no-extra-bind": 2, 57 | "no-extra-boolean-cast": 2, 58 | "no-extra-parens": [2, "functions"], 59 | "no-fallthrough": 2, 60 | "no-floating-decimal": 2, 61 | "no-func-assign": 2, 62 | "no-implied-eval": 2, 63 | "no-inner-declarations": [2, "functions"], 64 | "no-invalid-regexp": 2, 65 | "no-irregular-whitespace": 2, 66 | "no-iterator": 2, 67 | "no-label-var": 2, 68 | "no-labels": 2, 69 | "no-lone-blocks": 2, 70 | "no-mixed-spaces-and-tabs": 2, 71 | "no-multi-spaces": 2, 72 | "no-multi-str": 2, 73 | "no-multiple-empty-lines": [2, { "max": 1 }], 74 | "no-native-reassign": 0, 75 | "no-negated-in-lhs": 2, 76 | "no-new": 2, 77 | "no-new-func": 2, 78 | "no-new-object": 2, 79 | "no-new-require": 2, 80 | "no-new-wrappers": 2, 81 | "no-obj-calls": 2, 82 | "no-octal": 2, 83 | "no-octal-escape": 2, 84 | "no-proto": 0, 85 | "no-redeclare": 2, 86 | "no-regex-spaces": 2, 87 | "no-return-assign": 2, 88 | "no-self-compare": 2, 89 | "no-sequences": 2, 90 | "no-shadow-restricted-names": 2, 91 | "no-spaced-func": 2, 92 | "no-sparse-arrays": 2, 93 | "no-this-before-super": 2, 94 | "no-throw-literal": 2, 95 | "no-trailing-spaces": 0, 96 | "no-undef": 2, 97 | "no-undef-init": 2, 98 | "no-unexpected-multiline": 2, 99 | "no-unneeded-ternary": [2, { "defaultAssignment": false }], 100 | "no-unreachable": 2, 101 | "no-unused-vars": [2, { "vars": "all", "args": "none" }], 102 | "no-useless-call": 0, 103 | "no-with": 2, 104 | "one-var": [0, { "initialized": "never" }], 105 | "operator-linebreak": [0, "after", { "overrides": { "?": "before", ":": "before" } }], 106 | "padded-blocks": [0, "never"], 107 | "quotes": [2, "single", "avoid-escape"], 108 | "radix": 2, 109 | "semi": [2, "always"], 110 | "semi-spacing": [2, { "before": false, "after": true }], 111 | "space-before-blocks": [2, "always"], 112 | "space-before-function-paren": [2, "never"], 113 | "space-in-parens": [2, "never"], 114 | "space-infix-ops": 2, 115 | "space-unary-ops": [2, { "words": true, "nonwords": false }], 116 | "spaced-comment": [0, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }], 117 | "use-isnan": 2, 118 | "valid-typeof": 2, 119 | "wrap-iife": [2, "any"], 120 | "yoda": [2, "never"] 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Enforce Unix newlines 2 | * text eol=lf 3 | 4 | # binaries 5 | *.ai binary 6 | *.psd binary 7 | *.jpg binary 8 | *.gif binary 9 | *.png binary 10 | *.jpeg binary -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: jonschlinkert 2 | tidelift: npm/is-extglob 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # always ignore files 2 | *.DS_Store 3 | *.sublime-* 4 | 5 | # test related, or directories generated by tests 6 | test/actual 7 | actual 8 | coverage 9 | .nyc* 10 | 11 | # npm 12 | node_modules 13 | npm-debug.log 14 | 15 | # misc 16 | _gh_pages 17 | bower_components 18 | vendor 19 | temp 20 | tmp 21 | TODO.md 22 | yarn.lock -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | os: 3 | - linux 4 | - osx 5 | language: node_js 6 | node_js: 7 | - node 8 | - '6' 9 | - '4' 10 | - '0.12' 11 | - '0.10' 12 | -------------------------------------------------------------------------------- /.verb.md: -------------------------------------------------------------------------------- 1 | ## Usage 2 | 3 | ```js 4 | var isExtglob = require('{%= name %}'); 5 | ``` 6 | 7 | **True** 8 | 9 | ```js 10 | isExtglob('?(abc)'); 11 | isExtglob('@(abc)'); 12 | isExtglob('!(abc)'); 13 | isExtglob('*(abc)'); 14 | isExtglob('+(abc)'); 15 | ``` 16 | 17 | **False** 18 | 19 | Escaped extglobs: 20 | 21 | ```js 22 | isExtglob('\\?(abc)'); 23 | isExtglob('\\@(abc)'); 24 | isExtglob('\\!(abc)'); 25 | isExtglob('\\*(abc)'); 26 | isExtglob('\\+(abc)'); 27 | ``` 28 | 29 | Everything else... 30 | 31 | ```js 32 | isExtglob('foo.js'); 33 | isExtglob('!foo.js'); 34 | isExtglob('*.js'); 35 | isExtglob('**/abc.js'); 36 | isExtglob('abc/*.js'); 37 | isExtglob('abc/(aaa|bbb).js'); 38 | isExtglob('abc/[a-z].js'); 39 | isExtglob('abc/{a,b}.js'); 40 | isExtglob('abc/?.js'); 41 | isExtglob('abc.js'); 42 | isExtglob('abc/def/ghi.js'); 43 | ``` 44 | 45 | ## History 46 | 47 | **v2.0** 48 | 49 | Adds support for escaping. Escaped exglobs no longer return true. 50 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014-2016, Jon Schlinkert 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # is-extglob [![NPM version](https://img.shields.io/npm/v/is-extglob.svg?style=flat)](https://www.npmjs.com/package/is-extglob) [![NPM downloads](https://img.shields.io/npm/dm/is-extglob.svg?style=flat)](https://npmjs.org/package/is-extglob) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-extglob.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-extglob) 2 | 3 | > Returns true if a string has an extglob. 4 | 5 | ## Install 6 | 7 | Install with [npm](https://www.npmjs.com/): 8 | 9 | ```sh 10 | $ npm install is-extglob 11 | ``` 12 | 13 | ## Usage 14 | 15 | ```js 16 | var isExtglob = require('is-extglob'); 17 | ``` 18 | 19 | **True** 20 | 21 | ```js 22 | isExtglob('?(abc)'); 23 | isExtglob('@(abc)'); 24 | isExtglob('!(abc)'); 25 | isExtglob('*(abc)'); 26 | isExtglob('+(abc)'); 27 | ``` 28 | 29 | **False** 30 | 31 | Escaped extglobs: 32 | 33 | ```js 34 | isExtglob('\\?(abc)'); 35 | isExtglob('\\@(abc)'); 36 | isExtglob('\\!(abc)'); 37 | isExtglob('\\*(abc)'); 38 | isExtglob('\\+(abc)'); 39 | ``` 40 | 41 | Everything else... 42 | 43 | ```js 44 | isExtglob('foo.js'); 45 | isExtglob('!foo.js'); 46 | isExtglob('*.js'); 47 | isExtglob('**/abc.js'); 48 | isExtglob('abc/*.js'); 49 | isExtglob('abc/(aaa|bbb).js'); 50 | isExtglob('abc/[a-z].js'); 51 | isExtglob('abc/{a,b}.js'); 52 | isExtglob('abc/?.js'); 53 | isExtglob('abc.js'); 54 | isExtglob('abc/def/ghi.js'); 55 | ``` 56 | 57 | ## History 58 | 59 | **v2.0** 60 | 61 | Adds support for escaping. Escaped exglobs no longer return true. 62 | 63 | ## About 64 | 65 | ### Related projects 66 | 67 | * [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob "Returns `true` if an array has a glob pattern.") 68 | * [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet") 69 | * [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.") 70 | 71 | ### Contributing 72 | 73 | Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). 74 | 75 | ### Building docs 76 | 77 | _(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ 78 | 79 | To generate the readme and API documentation with [verb](https://github.com/verbose/verb): 80 | 81 | ```sh 82 | $ npm install -g verb verb-generate-readme && verb 83 | ``` 84 | 85 | ### Running tests 86 | 87 | Install dev dependencies: 88 | 89 | ```sh 90 | $ npm install -d && npm test 91 | ``` 92 | 93 | ### Author 94 | 95 | **Jon Schlinkert** 96 | 97 | * [github/jonschlinkert](https://github.com/jonschlinkert) 98 | * [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 99 | 100 | ### License 101 | 102 | Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). 103 | Released under the [MIT license](https://github.com/jonschlinkert/is-extglob/blob/master/LICENSE). 104 | 105 | *** 106 | 107 | _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 12, 2016._ 108 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | # Test against this version of Node.js 2 | environment: 3 | matrix: 4 | # node.js 5 | - nodejs_version: "6.0" 6 | - nodejs_version: "4.0" 7 | - nodejs_version: "0.12" 8 | - nodejs_version: "0.10" 9 | 10 | # Install scripts. (runs after repo cloning) 11 | install: 12 | # Get the latest stable version of Node.js or io.js 13 | - ps: Install-Product node $env:nodejs_version 14 | # install modules 15 | - npm install 16 | 17 | # Post-install test scripts. 18 | test_script: 19 | # Output useful info for debugging. 20 | - node --version 21 | - npm --version 22 | # run tests 23 | - npm test 24 | 25 | # Don't actually build. 26 | build: off 27 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * is-extglob 3 | * 4 | * Copyright (c) 2014-2016, Jon Schlinkert. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | var regex = /(\\).|([@?!+*]\(.*\))/; 9 | module.exports = function isExtglob(str) { 10 | if (typeof str !== 'string' || str === '') { 11 | return false; 12 | } 13 | 14 | var match; 15 | while ((match = regex.exec(str))) { 16 | if (match[2]) return true; 17 | str = str.slice(match.index + match[0].length); 18 | } 19 | 20 | return false; 21 | }; 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "is-extglob", 3 | "description": "Returns true if a string has an extglob.", 4 | "version": "2.1.1", 5 | "homepage": "https://github.com/jonschlinkert/is-extglob", 6 | "author": "Jon Schlinkert (https://github.com/jonschlinkert)", 7 | "repository": "jonschlinkert/is-extglob", 8 | "bugs": { 9 | "url": "https://github.com/jonschlinkert/is-extglob/issues" 10 | }, 11 | "license": "MIT", 12 | "files": [ 13 | "index.js" 14 | ], 15 | "main": "index.js", 16 | "engines": { 17 | "node": ">=0.10.0" 18 | }, 19 | "scripts": { 20 | "test": "mocha" 21 | }, 22 | "devDependencies": { 23 | "gulp-format-md": "^0.1.10", 24 | "mocha": "^3.0.2" 25 | }, 26 | "keywords": [ 27 | "bash", 28 | "braces", 29 | "check", 30 | "exec", 31 | "expression", 32 | "extglob", 33 | "glob", 34 | "globbing", 35 | "globstar", 36 | "is", 37 | "match", 38 | "matches", 39 | "pattern", 40 | "regex", 41 | "regular", 42 | "string", 43 | "test" 44 | ], 45 | "verb": { 46 | "toc": false, 47 | "layout": "default", 48 | "tasks": [ 49 | "readme" 50 | ], 51 | "plugins": [ 52 | "gulp-format-md" 53 | ], 54 | "related": { 55 | "list": [ 56 | "has-glob", 57 | "is-glob", 58 | "micromatch" 59 | ] 60 | }, 61 | "reflinks": [ 62 | "verb", 63 | "verb-generate-readme" 64 | ], 65 | "lint": { 66 | "reflinks": true 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * is-extglob 3 | * 4 | * Copyright (c) 2014-2015, Jon Schlinkert. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | require('mocha'); 11 | var assert = require('assert'); 12 | var isExtglob = require('./'); 13 | 14 | describe('isExtglob', function () { 15 | it('should return true when the string has an extglob:', function () { 16 | assert(isExtglob('?(abc)')); 17 | assert(isExtglob('@(abc)')); 18 | assert(isExtglob('!(abc)')); 19 | assert(isExtglob('*(abc)')); 20 | assert(isExtglob('+(abc)')); 21 | assert(isExtglob('xyz/?(abc)/xyz')); 22 | assert(isExtglob('xyz/@(abc)/xyz')); 23 | assert(isExtglob('xyz/!(abc)/xyz')); 24 | assert(isExtglob('xyz/*(abc)/xyz')); 25 | assert(isExtglob('xyz/+(abc)/xyz')); 26 | assert(isExtglob('?(abc|xyz)/xyz')); 27 | assert(isExtglob('@(abc|xyz)')); 28 | assert(isExtglob('!(abc|xyz)')); 29 | assert(isExtglob('*(abc|xyz)')); 30 | assert(isExtglob('+(abc|xyz)')); 31 | }); 32 | 33 | it('should not match escaped extglobs', function () { 34 | assert(!isExtglob('?(abc/xyz')); 35 | assert(!isExtglob('@(abc')); 36 | assert(!isExtglob('!(abc')); 37 | assert(!isExtglob('*(abc')); 38 | assert(!isExtglob('+(abc')); 39 | assert(!isExtglob('(a|b')); 40 | assert(!isExtglob('\\?(abc)')); 41 | assert(!isExtglob('\\@(abc)')); 42 | assert(!isExtglob('\\!(abc)')); 43 | assert(!isExtglob('\\*(abc)')); 44 | assert(!isExtglob('\\+(abc)')); 45 | assert(!isExtglob('xyz/\\?(abc)/xyz')); 46 | assert(!isExtglob('xyz/\\@(abc)/xyz')); 47 | assert(!isExtglob('xyz/\\!(abc)/xyz')); 48 | assert(!isExtglob('xyz/\\*(abc)/xyz')); 49 | assert(!isExtglob('xyz/\\+(abc)/xyz')); 50 | assert(!isExtglob('\\?(abc|xyz)/xyz')); 51 | assert(!isExtglob('\\@(abc|xyz)')); 52 | assert(!isExtglob('\\!(abc|xyz)')); 53 | assert(!isExtglob('\\*(abc|xyz)')); 54 | assert(!isExtglob('\\+(abc|xyz)')); 55 | assert(!isExtglob('?\\(abc)')); 56 | assert(!isExtglob('@\\(abc)')); 57 | assert(!isExtglob('!\\(abc)')); 58 | assert(!isExtglob('*\\(abc)')); 59 | assert(!isExtglob('+\\(abc)')); 60 | assert(!isExtglob('xyz/?\\(abc)/xyz')); 61 | assert(!isExtglob('xyz/@\\(abc)/xyz')); 62 | assert(!isExtglob('xyz/!\\(abc)/xyz')); 63 | assert(!isExtglob('xyz/*\\(abc)/xyz')); 64 | assert(!isExtglob('xyz/+\\(abc)/xyz')); 65 | assert(!isExtglob('?\\(abc|xyz)/xyz')); 66 | assert(!isExtglob('@\\(abc|xyz)')); 67 | assert(!isExtglob('!\\(abc|xyz)')); 68 | assert(!isExtglob('*\\(abc|xyz)')); 69 | assert(!isExtglob('+\\(abc|xyz)')); 70 | }); 71 | 72 | it('should detect when an extglob is in the same pattern as an escaped extglob', function () { 73 | assert(isExtglob('\\?(abc)/?(abc)')); 74 | assert(isExtglob('\\@(abc)/@(abc)')); 75 | assert(isExtglob('\\!(abc)/!(abc)')); 76 | assert(isExtglob('\\*(abc)/*(abc)')); 77 | assert(isExtglob('\\+(abc)/+(abc)')); 78 | assert(isExtglob('xyz/\\?(abc)/xyz/xyz/?(abc)/xyz')); 79 | assert(isExtglob('xyz/\\@(abc)/xyz/xyz/@(abc)/xyz')); 80 | assert(isExtglob('xyz/\\!(abc)/xyz/xyz/!(abc)/xyz')); 81 | assert(isExtglob('xyz/\\*(abc)/xyz/xyz/*(abc)/xyz')); 82 | assert(isExtglob('xyz/\\+(abc)/xyz/xyz/+(abc)/xyz')); 83 | assert(isExtglob('\\?(abc|xyz)/xyz/?(abc|xyz)/xyz')); 84 | assert(isExtglob('\\@(abc|xyz)/@(abc|xyz)')); 85 | assert(isExtglob('\\!(abc|xyz)/!(abc|xyz)')); 86 | assert(isExtglob('\\*(abc|xyz)/*(abc|xyz)')); 87 | assert(isExtglob('\\+(abc|xyz)/+(abc|xyz)')); 88 | }); 89 | 90 | it('should return false when the string does not have an extglob:', function () { 91 | assert(!isExtglob()); 92 | assert(!isExtglob(null)); 93 | assert(!isExtglob('')); 94 | assert(!isExtglob('? (abc)')); 95 | assert(!isExtglob('@.(abc)')); 96 | assert(!isExtglob('!&(abc)')); 97 | assert(!isExtglob('*z(abc)')); 98 | assert(!isExtglob('+~(abc)')); 99 | assert(!isExtglob(['**/*.js'])); 100 | assert(!isExtglob(['foo.js'])); 101 | assert(!isExtglob('*.js')); 102 | assert(!isExtglob('!*.js')); 103 | assert(!isExtglob('!foo')); 104 | assert(!isExtglob('!foo.js')); 105 | assert(!isExtglob('**/abc.js')); 106 | assert(!isExtglob('abc/*.js')); 107 | assert(!isExtglob('abc/{a,b}.js')); 108 | assert(!isExtglob('abc/{a..z}.js')); 109 | assert(!isExtglob('abc/{a..z..2}.js')); 110 | assert(!isExtglob('abc/(aaa|bbb).js')); 111 | assert(!isExtglob('abc/?.js')); 112 | assert(!isExtglob('?.js')); 113 | assert(!isExtglob('[abc].js')); 114 | assert(!isExtglob('[^abc].js')); 115 | assert(!isExtglob('a/b/c/[a-z].js')); 116 | assert(!isExtglob('[a-j]*[^c]b/c')); 117 | assert(!isExtglob('.')); 118 | assert(!isExtglob('aa')); 119 | assert(!isExtglob('abc.js')); 120 | assert(!isExtglob('abc/def/ghi.js')); 121 | }); 122 | }); 123 | 124 | --------------------------------------------------------------------------------