FIX: limit long model_name from makerworld

Jira: STUDIO-12553

Change-Id: I4d43d2b3abbb392baad2ae72d4197a6e61ab3f51
(cherry picked from commit fd0f7688508c0ff2a420bff34beae280cc24cf2b)
This commit is contained in:
hemai
2025-06-09 15:54:52 +08:00
committed by Noisyfox
parent 39360790c7
commit 527def0887

View File

@@ -284,6 +284,7 @@ void PrintJob::process(Ctl &ctl)
std::regex pattern("_+");
params.project_name = std::regex_replace(mall_model_name, pattern, "_");
params.project_name = truncate_string(params.project_name, 100);
}
catch (...) {}
}