Merge pull request #11 from faroukbmiled/refactored

Name Regex fix
This commit is contained in:
Ryuk 2023-09-26 11:40:55 -07:00 committed by GitHub
commit 356ca5edf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
curr_folder_name = zone_path.parent.name
workshop_id = extract_json_data(json_path, "PublisherID") or "None"
name = re.sub(r'\^\w+', '', extract_json_data(json_path, "Title")) or "None"
name = re.sub(r'\^\d', '', extract_json_data(json_path, "Title")) or "None"
name = name[:45] + "..." if len(name) > 45 else name
item_type = extract_json_data(json_path, "Type") or "None"
folder_name = extract_json_data(json_path, "FolderName") or "None"