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