mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-01-26 19:19:57 +00:00
Make the tranlation in csv adding to result, also support Tag without tranlation.
This commit is contained in:
@@ -234,10 +234,10 @@ function insertTextAtCursor(textArea, result, tagword) {
|
||||
|
||||
if (acConfig.escapeParentheses) {
|
||||
sanitizedText = sanitizedText
|
||||
.replaceAll("(", "\\(")
|
||||
.replaceAll(")", "\\)")
|
||||
.replaceAll("[", "\\[")
|
||||
.replaceAll("]", "\\]");
|
||||
.replaceAll("(", "\\(")
|
||||
.replaceAll(")", "\\)")
|
||||
.replaceAll("[", "\\[")
|
||||
.replaceAll("]", "\\]");
|
||||
}
|
||||
|
||||
var prompt = textArea.value;
|
||||
@@ -303,6 +303,9 @@ function addResultsToList(textArea, results, tagword) {
|
||||
let result = results[i];
|
||||
let li = document.createElement("li");
|
||||
li.textContent = result[0];
|
||||
if (result[2]) {
|
||||
li.textContent += " >> " + result[2];
|
||||
}
|
||||
|
||||
// Wildcards & Embeds have no tag type
|
||||
if (!result[1].startsWith("wildcard") && result[1] !== "embedding") {
|
||||
|
||||
Reference in New Issue
Block a user