node/lib/internal/util
Anna Henningsen c239cc650c util,readline: NFC-normalize strings before getStringWidth
The assumption here is that decomposed characters render like their
composed character equivalents, and that working with the former
comes with a risk of over-estimating string widths given that
we compute them on a per-code-point basis. The regression test
added here (한글 vs 한글) is an example of that happening.

PR-URL: https://github.com/nodejs/node/pull/33052
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2020-04-28 13:58:28 +02:00
..
comparisons.js util: throw if unreachable TypedArray checking code is reached 2020-02-17 12:41:05 -08:00
debuglog.js
inspect.js util,readline: NFC-normalize strings before getStringWidth 2020-04-28 13:58:28 +02:00
inspector.js
types.js