fix: split pattern (#384)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user