Found a weird error when creating a gamemode

I found an error that seems to appear if my gamemode’s name starts with “game.” Here’s the extremely basic gamemode I’m using that gives me the error.

gamemodes/gametest/gametest.txt:



"Gamemode"
{
	"base"		"base"
	"title"		"gametest"
	"maps"		"^gm_"
	"menusystem"	"1"
	"workshopid"	""
	
	"settings" {
	
	}
}


gamemodes/gametest/gamemode/cl_init.lua:



include("shared.lua")


gamemodes/gametest/gamemode/init.lua:



AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")

include("shared.lua")

function GM:PlayerConnect(name, ip)

end

function GM:PlayerInitialSpawn(ply)
	ply:SetTeam(1)
end

function GM:PlayerAuthed(ply, id, uniqueid)
	
end


gamemodes/gametest/gamemode/shared.lua:



GM.Name = "gametest"
GM.Author = "N/A"
GM.Email = "N/A"
GM.Website = "N/A"

team.SetUp(1, "Team 1", Color(0, 0, 255))

function GM:Initialize()
	self.BaseClass.Initialize(self)
end


And my console shows:

So I get those errors. But then when I create a newgamemode but replace “gametest” with “gamtest,” the errors are gone:

Put the issue here: https://github.com/Facepunch/garrysmod-issues