Skip to content

Commit

Permalink
Merge pull request #12 from lowwa132/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect count when characters from basic character set extension are used #2
  • Loading branch information
matteogatti authored Apr 27, 2022
2 parents 1f3c311 + a4cdf80 commit ae6caad
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 ae6caad

Please sign in to comment.