From 712c4a5862e2afa907740ece353d13dda748dbc9 Mon Sep 17 00:00:00 2001 From: Dominik Reh Date: Fri, 24 Feb 2023 14:50:22 +0100 Subject: [PATCH] Trigger on unabbreviated lora/hypernet prefix Makes going back to edit or switch out stuff easier since you don't need to erase the prefix anymore --- javascript/ext_hypernets.js | 4 ++-- javascript/ext_loras.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/javascript/ext_hypernets.js b/javascript/ext_hypernets.js index 80787ee..aedf9ad 100644 --- a/javascript/ext_hypernets.js +++ b/javascript/ext_hypernets.js @@ -5,8 +5,8 @@ class HypernetParser extends BaseTagParser { parse() { // Show hypernetworks let tempResults = []; - if (tagword !== "<" && tagword !== " x.toLowerCase().includes(searchTerm)); // Filter by tagword } else { tempResults = hypernetworks; diff --git a/javascript/ext_loras.js b/javascript/ext_loras.js index 3bd67be..4fb1ce1 100644 --- a/javascript/ext_loras.js +++ b/javascript/ext_loras.js @@ -5,8 +5,8 @@ class LoraParser extends BaseTagParser { parse() { // Show lora let tempResults = []; - if (tagword !== "<" && tagword !== " x.toLowerCase().includes(searchTerm)); // Filter by tagword } else { tempResults = loras;