ljubi a81aaebda8 3 tests | 5 months ago | |
---|---|---|
.. | ||
LICENSE | 5 months ago | |
README.md | 5 months ago | |
index.d.ts | 5 months ago | |
index.js | 5 months ago | |
package.json | 5 months ago |
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());
//=> ["❤️", "👊🏽"]