fix: split pattern (#384)

This commit is contained in:
Gabe
2025-11-07 21:31:11 +08:00
parent e71acdaaa9
commit 6f35013faf

View File

@@ -34,7 +34,7 @@ export const matchRule = async (href, { injectRules, subrulesList }) => {
} }
const rule = rules.find((r) => const rule = rules.find((r) =>
r.pattern.split(",").some((p) => isMatch(href, p.trim())) r.pattern.split(/\n|,/).some((p) => isMatch(href, p.trim()))
); );
const globalRule = { const globalRule = {
...GLOBLA_RULE, ...GLOBLA_RULE,