Skip to content

Commit bb2d3cc

Browse files
committed
Only change casing of ordinary identifiers
1 parent 5354887 commit bb2d3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/formatter/ExpressionFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ export default class ExpressionFormatter {
508508
}
509509

510510
private showIdentifier(node: IdentifierNode): string {
511-
if (/['"\\`]/.test(node.text[0]) || node.text.startsWith(`U&`)) {
511+
if (!(node.tokenType === TokenType.IDENTIFIER)) {
512512
return node.text;
513513
} else {
514514
switch (this.cfg.identifierCase) {

0 commit comments

Comments
 (0)