mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-02 22:02:50 -08:00
fix bug
This commit is contained in:
parent
ed04f79bb5
commit
4d3661c188
1 changed files with 2 additions and 2 deletions
|
|
@ -462,10 +462,10 @@ function extraNetworksRemoveFromPrompt(textarea, text, is_neg) {
|
|||
},
|
||||
);
|
||||
if (idx >= 0) {
|
||||
if (postfix && res.slice(idx, postfix.length) === postfix) {
|
||||
if (postfix && res.slice(idx, idx + postfix.length) === postfix) {
|
||||
res = res.slice(0, idx) + res.slice(idx + postfix.length);
|
||||
}
|
||||
if (res.slice(idx - prefix.length, prefix.length) === prefix) {
|
||||
if (res.slice(idx - prefix.length, idx) === prefix) {
|
||||
res = res.slice(0, idx - prefix.length) + res.slice(idx);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue