mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 05:30:41 +02:00
cleanup sanatize name function
This commit is contained in:
parent
5c5ee8d699
commit
f55b6115d6
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ glm::vec2 ControllerScriptingInterface::getViewportDimensions() const {
|
|||
|
||||
QString ControllerScriptingInterface::sanatizeName(const QString& name) {
|
||||
QString cleanName { name };
|
||||
cleanName.replace(QString(" "), QString("")).replace(QString("."), QString("")).replace(QString("("), QString("")).replace(QString(")"), QString(""));
|
||||
cleanName.remove(QRegularExpression{"[\\(\\)\\.\\s]"});
|
||||
return cleanName;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue