Only truncate next-gen action identifiers if they actually end in "ng"

This commit is contained in:
Jason Perkins 2012-02-27 16:35:32 -05:00
parent cd6852b896
commit 8529bb0ea9

View File

@ -55,7 +55,9 @@
-- translate things accordingly. I'll yank this once the next-gen
-- actions are done and official
if a.isnextgen then
_ACTION = _ACTION:sub(1, -3)
if _ACTION:endswith("ng") then
_ACTION = _ACTION:sub(1, -3)
end
for sln in premake.solution.each() do
if a.onsolution then
a.onsolution(sln)