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