@algoux/standard-ranklist-utils 0.2.9 → 0.2.10
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 +6 -0
- package/dist/index.mjs +6 -0
- 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
|
});
|
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
|
});
|