mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-17 12:19:32 -05:00
fix(58146): enum quick info can display non ascii strings (#58171)
This commit is contained in:
@@ -1762,7 +1762,7 @@ function canUseOriginalText(node: LiteralLikeNode, flags: GetLiteralTextFlags):
|
||||
|
||||
/** @internal */
|
||||
export function getTextOfConstantValue(value: string | number) {
|
||||
return isString(value) ? '"' + escapeNonAsciiString(value) + '"' : "" + value;
|
||||
return isString(value) ? `"${escapeString(value)}"` : "" + value;
|
||||
}
|
||||
|
||||
// Make an identifier from an external module name by extracting the string after the last "/" and replacing
|
||||
|
||||
Reference in New Issue
Block a user