Skip to content

Commit

Permalink
Add wordcloud support for cyrillic letters (#2194) (#2234)
Browse files Browse the repository at this point in the history
* Add wordcloud support for cyrillic letters (#2194)

* Update utility.js
  • Loading branch information
builder-247 authored Oct 2, 2020
1 parent 5d3d8cf commit e34261b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const contributors = require('../CONTRIBUTORS');
* @return {Array}
*/
function tokenize(input) {
return input.replace(/[^a-zA-Z- ]+/g, '').replace('/ {2,}/', ' ').toLowerCase().split(' ');
return input.replace(/[^a-zа-я- ]+/gi, '').replace('/ {2,}/', ' ').toLowerCase().split(' ');
}

/*
Expand Down

0 comments on commit e34261b

Please sign in to comment.