mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
fix: handle all html rules properly
This commit is contained in:
parent
4df140d1b7
commit
a27e904309
2 changed files with 3 additions and 4 deletions
|
@ -123,7 +123,7 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
const [name, value] = ctx.args;
|
||||
|
||||
const ruleList = htmlRules.find((rule) => {
|
||||
const r = rule[name];
|
||||
const r = rule[name.toLowerCase()];
|
||||
if (!r) return false;
|
||||
if (r === "*") return true;
|
||||
if (typeof r === "function") return false; // this can't happen but ts
|
||||
|
@ -142,7 +142,7 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
const [namespace, name, value] = ctx.args;
|
||||
|
||||
const ruleList = htmlRules.find((rule) => {
|
||||
const r = rule[name];
|
||||
const r = rule[name.toLowerCase()];
|
||||
if (!r) return false;
|
||||
if (r === "*") return true;
|
||||
if (typeof r === "function") return false; // this can't happen but ts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue