Skip to content

Commit e34261b

Browse files
authored
Add wordcloud support for cyrillic letters (#2194) (#2234)
* Add wordcloud support for cyrillic letters (#2194) * Update utility.js
1 parent 5d3d8cf commit e34261b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/utility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const contributors = require('../CONTRIBUTORS');
2121
* @return {Array}
2222
*/
2323
function tokenize(input) {
24-
return input.replace(/[^a-zA-Z- ]+/g, '').replace('/ {2,}/', ' ').toLowerCase().split(' ');
24+
return input.replace(/[^a-zа-я- ]+/gi, '').replace('/ {2,}/', ' ').toLowerCase().split(' ');
2525
}
2626

2727
/*

0 commit comments

Comments
 (0)