1
0
Fork 0
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:
Brian Fiete 2023-12-31 06:23:18 -05:00
parent 3ae310e9a8
commit c1bc60d964

View file

@ -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 == '-')