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