mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-03 20:57:43 +01:00
Preserving the entry extensions field through v2 char exports and imports
This commit is contained in:
parent
731bbec9ab
commit
3e9bad6845
@ -4565,6 +4565,7 @@ function convertCharacterBook(characterBook) {
|
|||||||
sticky: entry.extensions?.sticky ?? null,
|
sticky: entry.extensions?.sticky ?? null,
|
||||||
cooldown: entry.extensions?.cooldown ?? null,
|
cooldown: entry.extensions?.cooldown ?? null,
|
||||||
delay: entry.extensions?.delay ?? null,
|
delay: entry.extensions?.delay ?? null,
|
||||||
|
extensions: entry.extensions ?? {},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -468,6 +468,7 @@ function convertWorldInfoToCharacterBook(name, entries) {
|
|||||||
position: entry.position == 0 ? 'before_char' : 'after_char',
|
position: entry.position == 0 ? 'before_char' : 'after_char',
|
||||||
use_regex: true, // ST keys are always regex
|
use_regex: true, // ST keys are always regex
|
||||||
extensions: {
|
extensions: {
|
||||||
|
...entry.extensions,
|
||||||
position: entry.position,
|
position: entry.position,
|
||||||
exclude_recursion: entry.excludeRecursion,
|
exclude_recursion: entry.excludeRecursion,
|
||||||
display_index: entry.displayIndex,
|
display_index: entry.displayIndex,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user