index.js 260 B

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