From 0d3f0262770820a38e3fe2b146c4a03ca63010e7 Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Fri, 28 Nov 2025 18:32:03 -0500 Subject: [PATCH] prevent parser from splitting out the & character --- Core.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Core.lua b/Core.lua index 48db345..771d70c 100644 --- a/Core.lua +++ b/Core.lua @@ -1318,10 +1318,15 @@ function CleveRoids.ParseMsg(msg) -- Check which separator is present local hasSlash = string.find(args, "/") local hasAmpersand = string.find(args, "&") + + -- Detect if & is part of a multi-comparison pattern (e.g., >0&<10) + -- Pattern: operator+number followed by & followed by operator + local isMultiComparison = hasAmpersand and string.find(args, "[>~=<]+%d+[^%d]*&[^%d]*[>~=<]") + local separator = "/" local operatorType = "OR" - if hasAmpersand and not hasSlash then + if hasAmpersand and not hasSlash and not isMultiComparison then separator = "&" operatorType = "AND" elseif hasAmpersand and hasSlash then