mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fix issue with escaping platform name
This commit is contained in:
@ -132,7 +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)
|
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