File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class Formatter {
2727 } else {
2828 inputValue = value as string ;
2929 }
30- switch ( wordCase ) {
30+ switch ( wordCase . toLowerCase ( ) ) {
3131 case "lower" : {
3232 resultValue = inputValue . toLowerCase ( ) ;
3333 break ;
@@ -36,7 +36,8 @@ export class Formatter {
3636 resultValue = inputValue . toUpperCase ( ) ;
3737 break ;
3838 }
39- case "word" : {
39+ case "word" :
40+ default : {
4041 resultValue = inputValue . toLowerCase ( ) ;
4142 /** commands */
4243 resultValue = resultValue . replace ( / ^ ( Z + \w | T S | T C | T R O | \w ) / i, v => v . toUpperCase ( ) ) ;
@@ -48,9 +49,6 @@ export class Formatter {
4849 resultValue = resultValue . replace ( / \$ c l a s s n a m e / i, "$ClassName" ) ;
4950 break ;
5051 }
51- default : {
52- break ;
53- }
5452 }
5553 if ( value instanceof vscode . SnippetString ) {
5654 return new vscode . SnippetString ( resultValue ) as T ;
You can’t perform that action at this time.
0 commit comments