From b807530117e82db4cd4d152f260e54c8cfdd6c00 Mon Sep 17 00:00:00 2001 From: BZLibby Date: Mon, 18 Dec 2023 19:01:18 -0600 Subject: [PATCH] fixes support for multiple wildcards in one token --- api/onnx_web/diffusers/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/onnx_web/diffusers/utils.py b/api/onnx_web/diffusers/utils.py index e862e1c0..60aca612 100644 --- a/api/onnx_web/diffusers/utils.py +++ b/api/onnx_web/diffusers/utils.py @@ -24,7 +24,7 @@ REGION_TOKEN = compile( r"\]+)\>" ) RESEED_TOKEN = compile(r"\") -WILDCARD_TOKEN = compile(r"__([-/\\\w\. ]+)__") +WILDCARD_TOKEN = compile(r"__([-/\\\w\]+)__") INTERVAL_RANGE = compile(r"(\w+)-{(\d+),(\d+)(?:,(\d+))?}") ALTERNATIVE_RANGE = compile(r"\(([^\)]+)\)")