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-regeximport charRegex from 'char-regex';
'❤️👊🏽'.match(/./);
//=> ['', '', '', '', '', '', '']
'❤️👊🏽'.match(charRegex());
//=> ['❤️', '👊🏽']- string-length - Get the real length of a string