diff --git a/NewWorldCompanion/ViewModels/Tabs/CraftingViewModel.cs b/NewWorldCompanion/ViewModels/Tabs/CraftingViewModel.cs index 8822907..cf433fa 100644 --- a/NewWorldCompanion/ViewModels/Tabs/CraftingViewModel.cs +++ b/NewWorldCompanion/ViewModels/Tabs/CraftingViewModel.cs @@ -280,10 +280,17 @@ private void CopyRecipeNameExecute(object obj) try { var recipe = (CraftingRecipe)obj; + + // Remove ':' string recipeName = recipe.Localisation.Contains(':') ? recipe.Localisation.Substring(recipe.Localisation.IndexOf(':') + 1) : recipe.Localisation; + // Remove ''' + recipeName = recipeName.Contains('\'') ? + recipeName.Substring(0, recipeName.IndexOf('\'')) : + recipeName; + System.Windows.Clipboard.SetText(recipeName.Trim()); } catch (Exception) { }