Дамир Газизов 50745011d6 доделаны некоторые странички | 4 mesiacov pred | |
---|---|---|
.. | ||
LICENSE | 4 mesiacov pred | |
README.md | 4 mesiacov pred | |
index.d.ts | 4 mesiacov pred | |
index.js | 4 mesiacov pred | |
package.json | 4 mesiacov pred |
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());
//=> ["❤️", "👊🏽"]