@dicelette/core 1.27.1 → 1.28.1
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -366,7 +366,7 @@ function verifyStatMatcherPattern(dice, replaceUnknow) {
|
|
|
366
366
|
return replaceUnknown(dice, replaceUnknow);
|
|
367
367
|
const matched = dice.matchAll(new RegExp(REMOVER_PATTERN.STAT_MATCHER));
|
|
368
368
|
const stats = matched ? Array.from(matched, (m) => m?.[0]).map((s) => `\`${s}\``).join(", ") : "unknown";
|
|
369
|
-
throw new DiceTypeError(
|
|
369
|
+
throw new DiceTypeError(stats, "unknown_stats");
|
|
370
370
|
}
|
|
371
371
|
return dice.replaceAll("+0", "").replaceAll("-0", "");
|
|
372
372
|
}
|