From a7a1e2a66ded69b38b284b753da154fa6ccfbe9c Mon Sep 17 00:00:00 2001 From: bash-j Date: Mon, 7 Aug 2023 21:27:32 +0930 Subject: [PATCH] modified: mikey_nodes.py --- mikey_nodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mikey_nodes.py b/mikey_nodes.py index 0342067..1c9bbcd 100644 --- a/mikey_nodes.py +++ b/mikey_nodes.py @@ -117,6 +117,7 @@ def find_and_replace_wildcards(prompt, offset_seed, debug=False): wildcard_path = os.path.join(folder_paths.base_path, 'wildcards') wildcard_regex = r'(\[(\d+)\$\$)?__((?:[^|_]+_)*[^|_]+)((?:\|[^|]+)*)__\]?' match_strings = [] + random.seed(offset_seed) offset = offset_seed for full_match, lines_count_str, actual_match, words_to_find_str in re.findall(wildcard_regex, prompt): words_to_find = words_to_find_str.split('|')[1:] if words_to_find_str else None