index.d.ts 284 B

12345678910111213
  1. /**
  2. * A regex to match any full character, considering weird character ranges.
  3. * @example
  4. * ```
  5. * const charRegex = require("char-regex");
  6. *
  7. * "❤️👊🏽".match(charRegex());
  8. * //=> ["❤️", "👊🏽"]
  9. * ```
  10. */
  11. declare function charRegex(): RegExp
  12. export = charRegex