fix some bug

This commit is contained in:
QIDI TECH
2025-09-25 12:07:30 +08:00
parent 8177bf8912
commit 6ec016a6f8
12 changed files with 103 additions and 44 deletions

View File

@@ -296,7 +296,7 @@ void PrintJob::process()
try {
std::string mall_model_name = model_name->second;
std::replace(mall_model_name.begin(), mall_model_name.end(), ' ', '_');
const char *unusable_symbols = " #;\'<>:/\\|?*\"";
const char *unusable_symbols = "#\'<>:\\|?*\"";
for (const char *symbol = unusable_symbols; *symbol != '\0'; ++symbol) { std::replace(mall_model_name.begin(), mall_model_name.end(), *symbol, '_'); }
std::regex pattern("_+");