mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Corrected handling dash in wildcard names, more wildcards (extended-color)
This commit is contained in:
@@ -100,7 +100,7 @@ def apply_style(style, positive):
|
||||
|
||||
def apply_wildcards(wildcard_text, rng, directory=wildcards_path):
|
||||
for _ in range(wildcards_max_bfs_depth):
|
||||
placeholders = re.findall(r'__(\w+)__', wildcard_text)
|
||||
placeholders = re.findall(r'__([\w-]+)__', wildcard_text)
|
||||
if len(placeholders) == 0:
|
||||
return wildcard_text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user