Skip to content

Commit

Permalink
Update script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Malouche-git authored Jan 2, 2025
1 parent 2d96119 commit 8d9754a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def renamepdf(old_name):
prefix_stripper = re.compile(r"^.*?Sheet\s*-\s*") #"Sheet -", with space management
capitalizer = re.compile(r"-(?!.*-)\s*(.*)") #Capitalized after the last hyphen
normalizer = re.compile("\s*-\s*") #Normalize all other hyphens surrounded by spaces
sheet_count, rename_count, err_count = 0, 0, 0, 0
sheet_count, rename_count, err_count = 0, 0, 0

# Ask for sub folder treatment and define a search pattern
dir_pattern = "**/" if forms.alert("Do you want to include subfolders?", yes=True, no=True) else ""
Expand Down

0 comments on commit 8d9754a

Please sign in to comment.