From 5796eae5659a465ceaaca44c988fbf298f8d7ee3 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 1 Dec 2024 03:56:07 -0800 Subject: [PATCH] fix: Mac/Linux: Fixed a command-related error message in the importer inspector even when the command is correct --- .../Importer/LDtkEditorCommandUpdater.cs | 14 -------------- 1 file changed, 14 deletions(-) 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; }