Skip to content

util: use string width in util `formatPrimitive()` string length line check

Improves support for util.inspect formatting strings with unicode characters by updating to look at the string width instead of the string length.

Characters like have a width of 2 and length 1.

Merge request reports

Loading