Fix: accept all whitespace characters during input.conf parsing (#56)
Especially useful for tabs
This commit is contained in:

committed by
GitHub

parent
6aa705150b
commit
6a3d0ff281
2
uosc.lua
2
uosc.lua
@@ -2715,7 +2715,7 @@ state.context_menu_items = (function()
|
||||
local submenus_by_id = {}
|
||||
|
||||
for line in io.lines(input_conf_path) do
|
||||
local key, command, title = string.match(line, ' *([%S]+) +(.*) #! *(.*)')
|
||||
local key, command, title = string.match(line, '%s*([%S]+)%s+(.*)%s#!%s*(.*)')
|
||||
if key then
|
||||
local is_dummy = key:sub(1, 1) == '#'
|
||||
local submenu_id = ''
|
||||
|
Reference in New Issue
Block a user