30a4924d77e041840fc4726a559dc22a85a58c9352dd02cc8c6b0aca36a7002f94cff50a5f686ffe6f9255f7d1e70d2444ae4d9e37e0fc1c24684dfd34524b 291 B

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