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