diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/glob/matcher.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/glob/matcher.lua b/server/src/glob/matcher.lua index 2e07cf95..db81d558 100644 --- a/server/src/glob/matcher.lua +++ b/server/src/glob/matcher.lua @@ -96,7 +96,9 @@ function mt:range(exp, state, index) local after = self:exp(state, index) local ranges = {} for _, range in ipairs(exp.value) do - ranges[#ranges+1] = range[1] .. range[2] + if range[1] and range[2] then + ranges[#ranges+1] = range[1] .. range[2] + end end local current = m.R(table.unpack(ranges)) if after then |