mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-30 13:05:13 +08:00
update 2026-07-13 14:48:50
This commit is contained in:
1 parent
c65bea94f4
commit
11c910c57e
7 files changed
+11
-16
No files matched your search
@@ -1524,7 +1524,7 @@ function match_node_rule(name, rule)
|
||||
-- split rule by || into OR groups
|
||||
local function split_or(expr)
|
||||
local t = {}
|
||||
for part in expr:gmatch("[^|]+") do
|
||||
for part in (expr .. "||"):gmatch("(.-)%|%|") do
|
||||
part = trim(part)
|
||||
if part ~= "" then
|
||||
table.insert(t, part)
|
||||
@@ -1535,7 +1535,7 @@ function match_node_rule(name, rule)
|
||||
-- split rule by &&
|
||||
local function split_and(expr)
|
||||
local t = {}
|
||||
for part in expr:gmatch("[^&]+") do
|
||||
for part in (expr .. "&&"):gmatch("(.-)%&%&") do
|
||||
part = trim(part)
|
||||
if part ~= "" then
|
||||
table.insert(t, part)
|
||||
|
||||
Reference in new issue
Block a user