mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
FIX:Platename allow input of spaces,and its total length can reach 40
Change-Id: I97f9ddd5be472faa0ba1f1dfaa5863353b967225 (cherry picked from commit 1c7acc70660a165dd6d9d732ee574fbb9c4e9fde)
This commit is contained in:
parent
0a5aa3ebb2
commit
aca2e18549
2 changed files with 2 additions and 2 deletions
|
@ -1609,7 +1609,7 @@ void PartPlate::set_plate_name(const std::string &name)
|
|||
// compare if name equal to m_name, case sensitive
|
||||
if (boost::equals(m_name, name)) return;
|
||||
m_name = name;
|
||||
m_name.erase(remove_if(m_name.begin(), m_name.end(), ::isspace), m_name.end());
|
||||
|
||||
std::regex reg("[\\\\/:*?\"<>|]");
|
||||
m_name= regex_replace(m_name, reg, "");
|
||||
m_name_change = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue