diff --git a/ui/media/js/main.js b/ui/media/js/main.js index ade330d8..5c7cbe99 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1345,7 +1345,7 @@ function setEmbeddings(task) { let prompt = task.reqBody.prompt let negativePrompt = task.reqBody.negative_prompt let overallPrompt = (prompt + " " + negativePrompt).toLowerCase() - overallPrompt = overallPrompt.replaceAll(/[^a-z0-9\.]/g, " ") // only allow alpha-numeric and dots + overallPrompt = overallPrompt.replaceAll(/[^a-z0-9\-\.]/g, " ") // only allow alpha-numeric, dots and hyphens overallPrompt = overallPrompt.split(" ") let embeddingsTree = modelsOptions["embeddings"]