Urara-Blog/node_modules/.pnpm-store/v3/files/03/9f79be80e01e53d5d4a57e01fc31ff53309e54f8c12ea2bc37aa8a3d55028bb25924eb5946b1082d3db6dd2d60a16edb605b492f64ec1a35fb9bf9b232e4e0
2022-08-14 01:14:53 +08:00

20 lines
441 B
Text

/*!
* 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;
};