Skip to content
Permalink
Browse files
util: remove unicode support todo for perf implications
PR-URL: #43762
Refs: #43721
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Anemy authored and danielleadams committed Jul 26, 2022
1 parent bf3991b commit 1af7f241436aef2e0a75361bd47d9630391f49eb
Showing 1 changed file with 3 additions and 2 deletions.
@@ -1596,8 +1596,9 @@ function formatPrimitive(fn, value, ctx) {
trailer = `... ${remaining} more character${remaining > 1 ? 's' : ''}`;
}
if (ctx.compact !== true &&
// TODO(BridgeAR): Add unicode support. Use the readline getStringWidth
// function.
// We do not support handling unicode characters width with
// the readline getStringWidth function as there are
// performance implications.
value.length > kMinLineLength &&
value.length > ctx.breakLength - ctx.indentationLvl - 4) {
return value

0 comments on commit 1af7f24

Please sign in to comment.