diff --git a/src/DynamoCore/Search/SearchDictionary.cs b/src/DynamoCore/Search/SearchDictionary.cs index c14deb84ce2..b497948aecc 100644 --- a/src/DynamoCore/Search/SearchDictionary.cs +++ b/src/DynamoCore/Search/SearchDictionary.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Diagnostics; using Dynamo.Configuration; +using DynamoUtilities; namespace Dynamo.Search { @@ -321,13 +322,14 @@ private static Dictionary MatchWithSubset(Dictionary search private static string[] SplitOnWhiteSpace(string s) { return s.Split(null); - } + } private static bool ContainsSpecialCharacters(string element) { - return element.Contains("*") || element.Contains(".") || element.Contains(" ") - || element.Contains("\\"); + Char[] invalidCharacters = PathHelper.SpecialAndInvalidCharacters(); + return (!string.IsNullOrEmpty(element) && element.IndexOfAny(invalidCharacters) >= 0); } + #endregion /// diff --git a/src/DynamoCoreWpf/Properties/Resources.Designer.cs b/src/DynamoCoreWpf/Properties/Resources.Designer.cs index 167b0a73b40..ee0e3ffb027 100644 --- a/src/DynamoCoreWpf/Properties/Resources.Designer.cs +++ b/src/DynamoCoreWpf/Properties/Resources.Designer.cs @@ -4795,7 +4795,7 @@ public static string PackageManagerPackageUpdated { } /// - /// Looks up a localized string similar to The name of the package cannot contain /,\, or *.. + /// Looks up a localized string similar to The name of the package cannot contain. /// public static string PackageNameCannotContainTheseCharacters { get { diff --git a/src/DynamoCoreWpf/Properties/Resources.en-US.resx b/src/DynamoCoreWpf/Properties/Resources.en-US.resx index c5aae02a7b5..bfd1f4eb749 100644 --- a/src/DynamoCoreWpf/Properties/Resources.en-US.resx +++ b/src/DynamoCoreWpf/Properties/Resources.en-US.resx @@ -1528,7 +1528,7 @@ Next assemblies were loaded several times: {0} - The name of the package cannot contain /,\, or *. + The name of the package cannot contain ErrorString diff --git a/src/DynamoCoreWpf/Properties/Resources.resx b/src/DynamoCoreWpf/Properties/Resources.resx index e3c0eb3c4c4..8804ecc1a21 100644 --- a/src/DynamoCoreWpf/Properties/Resources.resx +++ b/src/DynamoCoreWpf/Properties/Resources.resx @@ -1640,7 +1640,7 @@ If the toggle is off custom packages that are not already loaded will load once ErrorString - The name of the package cannot contain /,\, or *. + The name of the package cannot contain ErrorString diff --git a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml index 1b17564834c..7dda090c298 100644 --- a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml +++ b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml @@ -119,6 +119,40 @@ + + + + + + + @@ -723,6 +757,94 @@ + + - - - - - - -