From 5373d06e72324e767b233ac46996baf42eed111f Mon Sep 17 00:00:00 2001 From: faroukbmiled Date: Tue, 26 Sep 2023 19:31:51 +0100 Subject: [PATCH] regex fix for name --- boiiiwd_package/src/library_tab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boiiiwd_package/src/library_tab.py b/boiiiwd_package/src/library_tab.py index 9ca5c22..9977249 100644 --- a/boiiiwd_package/src/library_tab.py +++ b/boiiiwd_package/src/library_tab.py @@ -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"