ohctechv3/.svn/pristine/c9/c9ca9e3ebf4c37b326c24dc95fb9e6983b3dc1fd.svn-base
2024-10-28 15:03:36 +05:30

21 lines
441 B
Plaintext

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