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