mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix whitespace variable to "0"
This commit is contained in:
@ -97,7 +97,7 @@ export class SlashCommandScope {
|
||||
return v ?? '';
|
||||
} else {
|
||||
const value = this.variables[key];
|
||||
return (value === '' || isNaN(Number(value))) ? (value || '') : Number(value);
|
||||
return (value?.trim?.() === '' || isNaN(Number(value))) ? (value || '') : Number(value);
|
||||
}
|
||||
}
|
||||
if (this.parent) {
|
||||
|
Reference in New Issue
Block a user