@algoux/standard-ranklist-utils 0.2.9 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -1
- package/dist/index.mjs +9 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -575,6 +575,12 @@ function genSeriesCalcFns(series, rows, ranks, officialRanks) {
|
|
|
575
575
|
if (value === void 0) {
|
|
576
576
|
return false;
|
|
577
577
|
}
|
|
578
|
+
if (typeof value === "object") {
|
|
579
|
+
return Object.values(value).some((v) => new RegExp(rule2).test(`${v}`));
|
|
580
|
+
}
|
|
581
|
+
if (Array.isArray(value)) {
|
|
582
|
+
return value.some((v) => new RegExp(rule2).test(`${v}`));
|
|
583
|
+
}
|
|
578
584
|
return new RegExp(rule2).test(`${value}`);
|
|
579
585
|
});
|
|
580
586
|
});
|
|
@@ -608,7 +614,9 @@ function genSeriesCalcFns(series, rows, ranks, officialRanks) {
|
|
|
608
614
|
}
|
|
609
615
|
}
|
|
610
616
|
});
|
|
611
|
-
filteredRows = currentFilteredRows
|
|
617
|
+
filteredRows = currentFilteredRows.filter(
|
|
618
|
+
(row) => row.user.official === void 0 || row.user.official === true
|
|
619
|
+
);
|
|
612
620
|
}
|
|
613
621
|
}
|
|
614
622
|
const usingEndpointRules = [];
|
package/dist/index.mjs
CHANGED
|
@@ -573,6 +573,12 @@ function genSeriesCalcFns(series, rows, ranks, officialRanks) {
|
|
|
573
573
|
if (value === void 0) {
|
|
574
574
|
return false;
|
|
575
575
|
}
|
|
576
|
+
if (typeof value === "object") {
|
|
577
|
+
return Object.values(value).some((v) => new RegExp(rule2).test(`${v}`));
|
|
578
|
+
}
|
|
579
|
+
if (Array.isArray(value)) {
|
|
580
|
+
return value.some((v) => new RegExp(rule2).test(`${v}`));
|
|
581
|
+
}
|
|
576
582
|
return new RegExp(rule2).test(`${value}`);
|
|
577
583
|
});
|
|
578
584
|
});
|
|
@@ -606,7 +612,9 @@ function genSeriesCalcFns(series, rows, ranks, officialRanks) {
|
|
|
606
612
|
}
|
|
607
613
|
}
|
|
608
614
|
});
|
|
609
|
-
filteredRows = currentFilteredRows
|
|
615
|
+
filteredRows = currentFilteredRows.filter(
|
|
616
|
+
(row) => row.user.official === void 0 || row.user.official === true
|
|
617
|
+
);
|
|
610
618
|
}
|
|
611
619
|
}
|
|
612
620
|
const usingEndpointRules = [];
|