Skip to content

Commit

Permalink
fix: spaces removed from ternary operator inside {{ }}
Browse files Browse the repository at this point in the history
close #2305
  • Loading branch information
johnsoncodehk committed Jan 30, 2023
1 parent 9810bb0 commit 2725cc1
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -25,7 +25,8 @@ const formatBrackets = {
empty: ['', ''] as [string, string],
round: ['(', ')'] as [string, string],
// fix https://github.com/johnsoncodehk/volar/issues/1210
curly: ['({', '})'] as [string, string],
// fix https://github.com/johnsoncodehk/volar/issues/2305
curly: ['0 +', '+ 0;'] as [string, string],
square: ['[', ']'] as [string, string],
};
const validTsVar = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
Expand Down

0 comments on commit 2725cc1

Please sign in to comment.