mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 01:18:02 +02:00
Fixed namespace for project names starting with number
This commit is contained in:
parent
3ae310e9a8
commit
c1bc60d964
1 changed files with 6 additions and 0 deletions
|
@ -1419,6 +1419,12 @@ namespace IDE
|
||||||
{
|
{
|
||||||
for (let c in projectName.RawChars)
|
for (let c in projectName.RawChars)
|
||||||
{
|
{
|
||||||
|
if (@c.Index == 0)
|
||||||
|
{
|
||||||
|
if (c.IsNumber)
|
||||||
|
outName.Append("_");
|
||||||
|
}
|
||||||
|
|
||||||
if ((c.IsLetterOrDigit) || (c == '_'))
|
if ((c.IsLetterOrDigit) || (c == '_'))
|
||||||
outName.Append(c);
|
outName.Append(c);
|
||||||
else if (c == '-')
|
else if (c == '-')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue