Closes #4187 [FEATURE_REQUEST] Allow wildcards in Banned Strings List

9481f9989a57490d6912d6f2180e1c20454d8daf

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Showing whitespace changes
public/scripts/textgen-settings.js+2 -1
@@ -423,7 +423,8 @@ function getCustomTokenBans() {
423 .concat(settings.global_banned_tokens.split('\n'))423 .concat(settings.global_banned_tokens.split('\n'))
424 .concat(textgenerationwebui_banned_in_macros)424 .concat(textgenerationwebui_banned_in_macros)
425 .filter(x => x.length > 0)425 .filter(x => x.length > 0)
426 .filter(onlyUnique);426 .filter(onlyUnique)
427 .map(x => substituteParams(x));
427428
428 //debug429 //debug
429 if (textgenerationwebui_banned_in_macros.length) {430 if (textgenerationwebui_banned_in_macros.length) {