8a8180ce5712334dda22e8be78b6487866697ea775f01e2b892de6a9ab0e82a43860c8bf0d414b3c062171ea5ad6d0b2060121bbb12eb322b513a93392932a 319 B

1234567891011121314
  1. /*!
  2. * is-glob <https://github.com/jonschlinkert/is-glob>
  3. *
  4. * Copyright (c) 2014-2015, Jon Schlinkert.
  5. * Licensed under the MIT License.
  6. */
  7. var isExtglob = require('is-extglob');
  8. module.exports = function isGlob(str) {
  9. return typeof str === 'string'
  10. && (/[*!?{}(|)[\]]/.test(str)
  11. || isExtglob(str));
  12. };