Irina Glushko 2389e7160b HW1 done | 3 anos atrás | |
---|---|---|
.. | ||
LICENSE | 3 anos atrás | |
README.md | 3 anos atrás | |
index.d.ts | 3 anos atrás | |
index.js | 3 anos atrás | |
package.json | 3 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());
//=> ["❤️", "👊🏽"]