Files
SillyTavern/public/scripts/extensions/regex
kingbri e6eae0aad1 Regex: Fix script duplication on edit
Editing a script can bypass the unique naming system by just renaming
the script to another one. This change ensures that no two script
names can be the same by checking if the existing index and found indices
differ.

If something goes wrong, it would be better to use a filter and a
map and then check the index array length/includes. FindIndex
is used here for efficiency's sake since each array index is unique.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-07-05 01:30:50 -04:00
..
2023-07-05 01:30:49 -04:00
2023-07-05 01:30:50 -04:00
2023-07-05 01:30:50 -04:00
2023-07-05 01:30:50 -04:00
2023-07-05 01:30:49 -04:00