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