Files
SillyTavern/public/scripts
kingbri ee6a6603a3 Regex: Add trimStrings option
Sometimes the matched regex string needs to be pruned before
replacement. Add a method for the user to provide strings which
globally trims a regex match before any replacement is done.

Example without trim:
input - <Manami's thoughts: This is a thought>
regex - /<([^>]*)>/g
output - <Manami's thoughts: Manami's thoughts: This is a thought>

With trim:
input - <Manami's thoughts: This is a thought>
regex - /<([^>]*)>/g
trim - ["{{char}}'s thoughts: "]
output - <Manami's thoughts: This is a thought>

Signed-off-by: kingbri <bdashore3@proton.me>
2023-07-05 01:30:50 -04:00
..
2023-07-05 01:30:50 -04:00
2023-02-23 15:07:05 +02:00
2023-05-10 15:19:37 +03:00
2023-06-01 00:50:04 +03:00
2023-07-05 01:30:49 -04:00
2023-06-01 01:02:51 +03:00
2023-07-02 20:21:42 +03:00
2023-04-28 22:49:43 +03:00
2023-06-28 15:48:12 +03:00
2022-12-22 07:22:29 +04:00
2023-05-10 15:19:37 +03:00
2023-04-26 18:29:47 +03:00
2022-12-22 07:22:29 +04:00
2023-05-03 01:19:36 +03:00
2023-05-03 01:19:36 +03:00
2023-07-03 18:22:12 +03:00
2023-03-12 00:42:58 +02:00
2023-03-15 14:56:13 +02:00
2023-03-23 01:07:57 +02:00
2023-06-30 12:01:49 +03:00
2023-06-28 02:09:33 +03:00
2023-06-11 15:06:14 +03:00
2023-06-11 15:06:14 +03:00
2023-07-05 01:30:49 -04:00
2023-03-15 23:27:00 +09:00
2023-07-04 12:26:21 -04:00
2023-05-18 01:10:17 +03:00
2023-05-17 20:53:32 +03:00
2023-05-15 01:14:46 +09:00
2023-07-02 18:31:02 -04:00