File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,19 @@ local function get_desc(commands)
1414 -- Filter out "fallback" & "fallback_to_mappings"
1515 if cmd ~= ' fallback' and cmd ~= ' fallback_to_mappings' then
1616 if type (cmd ) == ' string' then
17- -- Substitute all '_' with space , then captilize separated token
17+ -- Seperate on '_', then captilize each token
1818 local readable_cmd = cmd :gsub (' _' , ' ' )
1919 readable_cmd = readable_cmd :gsub (' (%a)(%w*)' , function (first , rest ) return first :upper () .. rest end )
2020 table.insert (parts , readable_cmd )
2121 elseif type (cmd ) == ' function' then
22- table.insert (parts , ' <Custom Function >' )
22+ table.insert (parts , ' <Custom Fn >' )
2323 end
2424 end
2525 end
2626
2727 -- In case the list consisted of only fallbacks
2828 if # parts == 0 then return prefix .. ' Default Behavior' end
29+
2930 return prefix .. table.concat (parts , ' , ' )
3031end
3132
You can’t perform that action at this time.
0 commit comments