$ npm 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
import charRegex from 'char-regex';
'❤️👊🏽'.match(/./);
//=> ['', '', '', '', '', '', '']
'❤️👊🏽'.match(charRegex());
//=> ['❤️', '👊🏽']
© 2010 - cnpmjs.org x YWFE | Home | YWFE