Fix: accept all whitespace characters during input.conf parsing (#56)

Especially useful for tabs
This commit is contained in:
Leonidas Arvanitis
2021-06-25 21:40:48 +03:00
committed by GitHub
parent 6aa705150b
commit 6a3d0ff281

View File

@@ -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 = ''