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