Merge pull request #1664 from LenAnderson/wi-fix-setentryfield-escapes

fix escape sequences in setentryfield slash command
This commit is contained in:
Cohee 2024-01-08 20:23:11 +02:00 committed by GitHub
commit 023cbf3cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -360,6 +360,8 @@ function registerWorldInfoSlashCommands() {
return '';
}
value = value.replace(/\\([{}|])/g, '$1');
const data = await loadWorldInfoData(file);
if (!data || !('entries' in data)) {