mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
Fix variable name
This commit is contained in:
parent
2fea218661
commit
cd86999d30
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user