2 * is-extglob <https://github.com/jonschlinkert/is-extglob>
4 * Copyright (c) 2014-2016, Jon Schlinkert.
5 * Licensed under the MIT License.
8 module.exports = function isExtglob(str) {
9 if (typeof str !== 'string' || str === '') {
14 while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) {
15 if (match[2]) return true;
16 str = str.slice(match.index + match[0].length);