mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix variable name
This commit is contained in:
@ -1705,9 +1705,9 @@ function randomReplace(input, emptyListPlaceholder = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function diceRollReplace(input, invalidRollPlaceholder = '') {
|
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();
|
let formula = matchValue.trim();
|
||||||
|
|
||||||
if (isDigitsOnly(formula)) {
|
if (isDigitsOnly(formula)) {
|
||||||
|
Reference in New Issue
Block a user