fix: recyclarr only match tags on strings

This commit is contained in:
sunaurus
2025-11-21 18:18:40 +02:00
parent 32d4c7002c
commit c2af6384bd
+1 -1
View File
@@ -17,7 +17,7 @@ with lib; let
(builtins.map ( (builtins.map (
# this is yq for "for all the scalers, if they match this regex, do a regex substitution and set the tag" # this is yq for "for all the scalers, if they match this regex, do a regex substitution and set the tag"
x: '' x: ''
with((.. | select(kind == "scalar") | select(test("^!${x} .*"))); . = sub("!${x} ", "") | . tag="!${x}") with((.. | select(kind == "scalar") | select(tag == "!!str") | select(test("^!${x} .*"))); . = sub("!${x} ", "") | . tag="!${x}")
'' ''
) )
preserved-tags); preserved-tags);