@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.mjs
CHANGED
|
@@ -294,7 +294,7 @@ function verifyStatMatcherPattern(dice, replaceUnknow) {
|
|
|
294
294
|
return replaceUnknown(dice, replaceUnknow);
|
|
295
295
|
const matched = dice.matchAll(new RegExp(REMOVER_PATTERN.STAT_MATCHER));
|
|
296
296
|
const stats = matched ? Array.from(matched, (m) => m?.[0]).map((s) => `\`${s}\``).join(", ") : "unknown";
|
|
297
|
-
throw new DiceTypeError(
|
|
297
|
+
throw new DiceTypeError(stats, "unknown_stats");
|
|
298
298
|
}
|
|
299
299
|
return dice.replaceAll("+0", "").replaceAll("-0", "");
|
|
300
300
|
}
|