|
|
há 3 meses atrás | |
|---|---|---|
| .. | ||
| LICENSE | há 3 meses atrás | |
| README.md | há 3 meses atrás | |
| index.d.ts | há 3 meses atrás | |
| index.js | há 3 meses atrás | |
| package.json | há 3 meses atrás | |
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());
//=> ["❤️", "👊🏽"]