tag regexp strings

This commit is contained in:
j 2025-10-20 10:33:34 +01:00
commit bde25f5762
3 changed files with 6 additions and 6 deletions

View file

@ -61,7 +61,7 @@ def write_if_new(path, data, mode=''):
old = ""
is_new = data != old
if path.endswith(".kdenlive"):
is_new = re.sub('\{.{36}\}', '', data) != re.sub('\{.{36}\}', '', old)
is_new = re.sub(r'\{.{36}\}', '', data) != re.sub(r'\{.{36}\}', '', old)
if is_new:
with open(path, write_mode) as fd:
fd.write(data)