mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:52:57 +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 ControllerScriptingInterface::sanatizeName(const QString& name) {
|
||||||
QString cleanName { name };
|
QString cleanName { name };
|
||||||
cleanName.replace(QString(" "), QString("")).replace(QString("."), QString("")).replace(QString("("), QString("")).replace(QString(")"), QString(""));
|
cleanName.remove(QRegularExpression{"[\\(\\)\\.\\s]"});
|
||||||
return cleanName;
|
return cleanName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue