Preserving the entry extensions field through v2 char exports and imports
| @@ -4565,6 +4565,7 @@ function convertCharacterBook(characterBook) { | ||
| 4565 | 4565 | sticky: entry.extensions?.sticky ?? null, |
| 4566 | 4566 | cooldown: entry.extensions?.cooldown ?? null, |
| 4567 | 4567 | delay: entry.extensions?.delay ?? null, |
| 4568 | + extensions: entry.extensions ?? {}, | |
| 4568 | 4569 | }; |
| 4569 | 4570 | }); |
| 4570 | 4571 | |
| @@ -468,6 +468,7 @@ function convertWorldInfoToCharacterBook(name, entries) { | ||
| 468 | 468 | position: entry.position == 0 ? 'before_char' : 'after_char', |
| 469 | 469 | use_regex: true, // ST keys are always regex |
| 470 | 470 | extensions: { |
| 471 | + ...entry.extensions, | |
| 471 | 472 | position: entry.position, |
| 472 | 473 | exclude_recursion: entry.excludeRecursion, |
| 473 | 474 | display_index: entry.displayIndex, |