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