diff --git a/Assets/LDtkUnity/Editor/CustomEditor/Importer/LDtkEditorCommandUpdater.cs b/Assets/LDtkUnity/Editor/CustomEditor/Importer/LDtkEditorCommandUpdater.cs index 2f6d8882..7ac6ddb2 100644 --- a/Assets/LDtkUnity/Editor/CustomEditor/Importer/LDtkEditorCommandUpdater.cs +++ b/Assets/LDtkUnity/Editor/CustomEditor/Importer/LDtkEditorCommandUpdater.cs @@ -287,20 +287,6 @@ public bool HasCustomCommand(LdtkJson data, out string reason) return false; } - //ensure that there is a 2nd arg. - string[] split = Regex.Matches(command.Command, @"[\""].+?[\""]|[^ ]+") - .Cast() - .Select(m => m.Value) - .ToArray(); - - if (split.Length != 2 || split[1] != $"\"{ProjectName}\"") - { - reason = $"The command exists, but doesn't have a single parameter of the project name." + - $"\n" + - $"The command was this:\n{command.Command}"; - return false; - } - reason = null; return true; }