mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-21 20:18:00 +01:00
Merge pull request #232 from kenzierocks/bugfix/counting-too-much
Fix unicode counting method Signed-off-by: Pablo Lezaeta <prflr88@gmail.com>
This commit is contained in:
commit
1e7763216c
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ class Backend():
|
|||
i += 1
|
||||
if not UCS.isCombining(c):
|
||||
rc += 1
|
||||
if unicodedata.east_asian_width(c) in ('F', 'W', 'A'):
|
||||
if unicodedata.east_asian_width(c) in ('F', 'W'):
|
||||
rc += 1
|
||||
return rc
|
||||
|
||||
|
|
Loading…
Reference in a new issue