From cd86999d30dbdae274b31e1cf59bfb323d8fe2db Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 8 Aug 2023 22:39:34 +0300 Subject: [PATCH] Fix variable name --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index a79148a5b..2749a974b 100644 --- a/public/script.js +++ b/public/script.js @@ -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)) {