Unverified Commit 8fb5fe28 authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

util: improve unicode support

The array grouping function relies on the width of the characters.
It was not calculated correct so far, since it used the string
length instead.
This improves the unicode output by calculating the mono-spaced
font width (other fonts might differ).

PR-URL: https://github.com/nodejs/node/pull/31319


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarSteven R Loomis <srloomis@us.ibm.com>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarMinwoo Jung <nodecorelab@gmail.com>
parent 2606e1ed
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment