From 6472e00fb037254db8ccaf187c583a44945fef53 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Sun, 29 Jun 2025 16:48:02 +0800 Subject: [PATCH] fix: Update EXTRANETS_REGEX to allow for hyphens in hypernet identifiers. Fixes #264 --- py/recipes/parsers/automatic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/recipes/parsers/automatic.py b/py/recipes/parsers/automatic.py index 0632c93d..fff4b4c3 100644 --- a/py/recipes/parsers/automatic.py +++ b/py/recipes/parsers/automatic.py @@ -19,7 +19,7 @@ class AutomaticMetadataParser(RecipeMetadataParser): LORA_HASHES_REGEX = r', Lora hashes:\s*"([^"]+)"' CIVITAI_RESOURCES_REGEX = r', Civitai resources:\s*(\[\{.*?\}\])' CIVITAI_METADATA_REGEX = r', Civitai metadata:\s*(\{.*?\})' - EXTRANETS_REGEX = r'<(lora|hypernet):([a-zA-Z0-9_\.\-]+):([0-9.]+)>' + EXTRANETS_REGEX = r'<(lora|hypernet):([^:]+):(-?[0-9.]+)>' MODEL_HASH_PATTERN = r'Model hash: ([a-zA-Z0-9]+)' VAE_HASH_PATTERN = r'VAE hash: ([a-zA-Z0-9]+)'