Skip to content

Commit

Permalink
Use 'iconv_strlen()' instead of 'strlen()' to calculate word length. F…
Browse files Browse the repository at this point in the history
…ixes #15.
  • Loading branch information
lpaulsen93 committed Jun 3, 2017
1 parent d8f0420 commit 5b856e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function _filterCloud(&$cloud, $balcklistName) {
// Remove to short words
$min = $this->getConf('minimum_word_length');
foreach ($cloud as $key => $count) {
if (strlen($key) < $min)
if (iconv_strlen($key) < $min)
unset($cloud[$key]);
}

Expand Down

0 comments on commit 5b856e3

Please sign in to comment.