Skip to content

Commit

Permalink
Fix incorrect count when characters from basic character set extensio…
Browse files Browse the repository at this point in the history
…n are used #2
  • Loading branch information
lowwa132 authored Apr 27, 2022
1 parent 1f3c311 commit a4cdf80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ SmsCounter.countGsm7bitEx = text => {
return _results;
};

return chars.length;
return chars().length;
};

module.exports = SmsCounter;

0 comments on commit a4cdf80

Please sign in to comment.