Files
SillyTavern/public/scripts/extensions/regex
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: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
2023-07-05 01:30:49 -04:00