$ cnpm install char-regex
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());
//=> ["❤️", "????????"]
Copyright 2013 - present © cnpmjs.org