k4d3 commited on
Commit
8c06571
1 Parent(s): 1024384

Signed-off-by: Balazs Horvath <[email protected]>

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -425,7 +425,7 @@ for image_filename in image_files:
425
 
426
  # Escape unescaped parentheses in the tags
427
  tags_to_write_escaped = [
428
- re.sub(r"(?<!\\)(\()", r"\\\1", tag) for tag in tags_to_write
429
  ]
430
 
431
  # Create a text file for each image with the filtered and escaped tags
 
425
 
426
  # Escape unescaped parentheses in the tags
427
  tags_to_write_escaped = [
428
+ re.sub(r"(?<!\\)(\(|\))", r"\\\1", tag) for tag in tags_to_write
429
  ]
430
 
431
  # Create a text file for each image with the filtered and escaped tags