mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
fix bug
This commit is contained in:
parent
ed04f79bb5
commit
4d3661c188
@ -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…
Reference in New Issue
Block a user