forked from platformio/platformio-core
Cleanup platform name before initialization
This commit is contained in:
1 parent
bd30de4f18
commit
18153d4168
1 file changed
+1
@@ -132,6 +132,7 @@ class PlatformFactory(object):
|
||||
|
||||
@staticmethod
|
||||
def get_clsname(name):
|
||||
name = re.sub(r"[^\da-z]+", "", name, flags=re.I)
|
||||
return "%s%sPlatform" % (name.upper()[0], name.lower()[1:])
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in new issue
Block a user