index.d.ts
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 13 export = charRegex