aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_selectors.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_selectors.lua')
-rw-r--r--lualib/lua_selectors.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua
index d33f6f0c7..7de1a10d8 100644
--- a/lualib/lua_selectors.lua
+++ b/lualib/lua_selectors.lua
@@ -743,7 +743,7 @@ exports.parse_selector = function(cfg, str)
local parsed = {parser:match(str)}
local output = {}
- if not parsed then return nil end
+ if not parsed or not parsed[1] then return nil end
-- Output AST format is the following:
-- table of individual selectors