Fix variable name

This commit is contained in:
Cohee 2023-08-08 22:39:34 +03:00
parent 2fea218661
commit cd86999d30

View File

@ -1705,9 +1705,9 @@ function randomReplace(input, emptyListPlaceholder = '') {
}
function diceRollReplace(input, invalidRollPlaceholder = '') {
const randomPattern = /{{roll[ : ]([^}]+)}}/gi;
const rollPattern = /{{roll[ : ]([^}]+)}}/gi;
return input.replace(randomPattern, (match, matchValue) => {
return input.replace(rollPattern, (match, matchValue) => {
let formula = matchValue.trim();
if (isDigitsOnly(formula)) {