|  | 3 mesi fa | |
|---|---|---|
| .. | ||
| LICENSE | 3 mesi fa | |
| README.md | 3 mesi fa | |
| index.d.ts | 3 mesi fa | |
| index.js | 3 mesi fa | |
| package.json | 3 mesi fa | |
A regex to match any full character, considering weird character ranges. Tested on every single emoji and unicode character. Based on the Lodash implementation.
npm install char-regex
const charRegex = require("char-regex");
"❤️👊🏽".match(/./);
//=> ["", "", "", "", "", "", ""]
"❤️👊🏽".match(charRegex());
//=> ["❤️", "👊🏽"]