File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ export function validateConfigKey(key: string): { valid: boolean; suggestion?: s
104104 return { valid : true } ;
105105 }
106106
107- // find the closest match for a suggestion
108107 let minLev = Number . MAX_VALUE ;
109108 let suggestion = "" ;
110109
110+ // find the closest match for a suggestion
111111 for ( const validKey of ALL_CONFIG_KEYS ) {
112112 // check if there is an exact case-insensitive match
113113 if ( validKey . toLowerCase ( ) === key . toLowerCase ( ) ) {
@@ -288,10 +288,6 @@ function SNAKE_CASE_toCamelCase(str: string): string {
288288 return str . toLowerCase ( ) . replace ( / ( [ - _ ] [ a - z ] ) / g, ( group ) => group . toUpperCase ( ) . replace ( "_" , "" ) ) ;
289289}
290290
291- function camelCaseTo_SNAKE_CASE ( str : string ) : string {
292- return str . replace ( / ( [ a - z ] ) ( [ A - Z ] ) / g, "$1_$2" ) . toUpperCase ( ) ;
293- }
294-
295291// Right now we have arguments that are not compatible with the format used in mongosh.
296292// An example is using --connectionString and positional arguments.
297293// We will consolidate them in a way where the mongosh format takes precedence.
You can’t perform that action at this time.
0 commit comments