anmol098 / waka-readme-stats

This GitHub action helps to add cool dev metrics to your github profile Readme
MIT License
3.39k stars 555 forks source link

feat: unicode display width support #502

Open Wybxc opened 7 months ago

Wybxc commented 7 months ago

Compute unicode display width instead of string length.

Before:

🐱‍đŸ’ģ Projects: 
莥įŽ—æœēįŊ‘įģœ                    1 hr 58 mins        ████████░░░░░░░░░░░░░░░░░   32.72 % 
alphartc                 1 hr 51 mins        ████████░░░░░░░░░░░░░░░░░   30.67 % 
rust_learning_group_ans  1 hr 45 mins        ███████░░░░░░░░░░░░░░░░░░   29.21 % 
erg-prover               18 mins             █░░░░░░░░░░░░░░░░░░░░░░░░   05.12 % 
typst                    8 mins              █░░░░░░░░░░░░░░░░░░░░░░░░   02.28 % 

After:

🐱‍đŸ’ģ Projects: 
莥įŽ—æœēįŊ‘įģœ               1 hr 58 mins        ████████░░░░░░░░░░░░░░░░░   32.72 % 
alphartc                 1 hr 51 mins        ████████░░░░░░░░░░░░░░░░░   30.67 % 
rust_learning_group_ans  1 hr 45 mins        ███████░░░░░░░░░░░░░░░░░░   29.21 % 
erg-prover               18 mins             █░░░░░░░░░░░░░░░░░░░░░░░░   05.12 % 
typst                    8 mins              █░░░░░░░░░░░░░░░░░░░░░░░░   02.28 % 

Preview:

image

Wybxc commented 2 months ago

It appears that a previous CI failure is blocking this pull request. I will push a new commit to trigger the CI again and work on resolving the issue.