◢███◤      ◢██◤                            ◢██◤                            
     ◢██◤       ◢██◤                            ◢██◤                             
    ◢██◤       ◢██◤                            ◢██◤                              
   ◢██◤       ◢██◤                            ◢██◤                               
  ◢██◤       ◢██◤                            ◢██◤                                
◢███◤       ◢██◤                            ◢██◤                          ◥██◣   
◥███       ◢█████◣    ◢████████◤ ◢███████◤ ◢██◤ ◢██◤                 ◢██◤   ██◣  
 ███      ◢███████◣        ◢██◤ ◢██◤ ◢██◤ ◢███████◤                 ◢██◤    ███  
 ███     ◢██◤  ◢██◤ ◢████████◤ ◢██◤      ◢█████◣                   ◢██◤     ███  
 ███    ◢██◤  ◢██◤ ◢██◤  ███◤ ◢██◤ ◢██◤ ◢██◤◥███◣                 ◢██◤      ███  
 ◥██   ◢██◤  ◢██◤ ◢████████◤ ◢███████◤ ◢██◤  ◥███◣               ◢██◤       ███◣ 
  ◥██◣                                                          ◢██◤       ◢███◤ 
                                 ◢███◤ ◢███◤ ◢██◤  ◢██◤ ◢█████████◤       ◢██◤   
                                ◢█████████◤ ◢██◤  ◢██◤ ◢██◤  ████◤       ◢██◤    
                               ◢██◤◢█◤◢██◤ ◢██◤  ◢██◤ ◢██◤   ███◤       ◢██◤     
                              ◢██◤   ◢██◤ ◢████████◤ ◢█████████◤       ◢██◤      
                             ◢██◤   ◢██◤ ◢████████◤ ◢█████████◤      ◢███◤       

0001
%+
[Color Bug] numbers as keys in object
u276gc
Having numbers as keys in an object results in failure to color the key & object "https://cdn.discordapp.com/attachments/229545531104296960/537230924912525352/db.png" This occurs with strings and integers, and only occurs to the leading characters that are numbers If a key only contains integers, coloring of the rest of the object fails "https://cdn.discordapp.com/attachments/229545531104296960/537244218201079809/int_key_clr_bug.png"
archived
answered
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
It only auto-colors keys that would be valid 'unquoted' keys in js. aka. [_a-z] has to be at the start. I'm not sure that that's a problem with the command line because I think it auto-quotes the keys (worth trying though.)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
So the solution to this is to wrap it in quotes Simple enough. Thanks for the speedy reply -edit Just tried it and it really doesn't like whats it seeing ""0"": "lq09tg", ""1"": "hc3b69", ""2"": "5c7e1r", ""3"": "hc3b69", ""4"": "hc3b69", ""5"": "hc3b69", ""6"": "5c7e1r", ""7"": "hc3b69",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I know a solution to this, adding i: at the beginning to bypass this `N"i:0"`: `V"lq09tg"`, `N"i:1"`: `V"hc3b69"`, `N"i:2"`: `V"5c7e1r"`, `N"i:3"`: `V"hc3b69"`, `N"i:4"`: `V"hc3b69"`, `N"i:5"`: `V"hc3b69"`, `N"i:6"`: `V"5c7e1r"`, `N"i:7"`: `V"hc3b69"`, `N"i:8"`: `V"hc3b69"`, much more like it
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -