Resolve Python regex library warnings

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman 2025-05-17 01:55:16 -07:00
parent d3d6bd8ce0
commit 0becc1d85f
No known key found for this signature in database
GPG key ID: 0CF84597DD87A9FF

View file

@ -38,7 +38,7 @@ with open(input_path, "r") as f:
if "fill" in data:
data = re.sub(r"fill=\"#.+?\"", f'fill="{color[mode]}"', data)
else:
data = re.sub(r"<svg", f'<svg fill="{color[mode]}"', data, 1)
data = re.sub(r"<svg", f'<svg fill="{color[mode]}"', data, count=1)
with open(filename, "w") as f:
f.write(data)