Corrected handling dash in wildcard names, more wildcards (extended-color)

This commit is contained in:
MoonRide303
2023-10-20 15:56:09 +02:00
parent 849dafb95b
commit 02282ab57a
4 changed files with 165 additions and 2 deletions
+1 -1
View File
@@ -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