mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-09 08:30:13 +01:00
Merge pull request #1664 from LenAnderson/wi-fix-setentryfield-escapes
fix escape sequences in setentryfield slash command
This commit is contained in:
commit
023cbf3cff
@ -360,6 +360,8 @@ function registerWorldInfoSlashCommands() {
|
||||
return '';
|
||||
}
|
||||
|
||||
value = value.replace(/\\([{}|])/g, '$1');
|
||||
|
||||
const data = await loadWorldInfoData(file);
|
||||
|
||||
if (!data || !('entries' in data)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user