uk.javascript.info
uk.javascript.info copied to clipboard
Improved the regular expression to work with Latin and Cyrillic
Without improving this regular expression, 'null' is returned when working with Cyrillic text, because Cyrillic characters are not always properly accounted for when using ' \w ', which is Latin-oriented.