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