summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/matcher/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua
index 9897bcbc..255e6405 100644
--- a/server/src/matcher/definition.lua
+++ b/server/src/matcher/definition.lua
@@ -3,7 +3,7 @@ local mt = {}
mt.__index = mt
function mt:isContainPos(obj)
- return obj.start <= self.pos and obj.finish >= self.pos
+ return obj.start <= self.pos and obj.finish + 1 >= self.pos
end
function mt:checkName(name)