Fix numeric keys indexing enum by accident
This commit is contained in:
		
					parent
					
						
							
								2fe9cc1e83
							
						
					
				
			
			
				commit
				
					
						dac2d2f8fe
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -25,7 +25,8 @@ export function parseConfig(input: string): Config { | ||||||
|     keys: (parsed.keys as string[][]).map((k) => |     keys: (parsed.keys as string[][]).map((k) => | ||||||
|       k.map((s) => { |       k.map((s) => { | ||||||
|         const special = SpecialSymbols[s]; |         const special = SpecialSymbols[s]; | ||||||
|         if (special === undefined) return s; |         const isNumber = String(parseInt(s)) == s; | ||||||
|  |         if (isNumber || special === undefined) return s; | ||||||
|         return special as SpecialSymbols; |         return special as SpecialSymbols; | ||||||
|       }), |       }), | ||||||
|     ), |     ), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue