com.wallstop-studios.unity-helpers 2.0.0-rc77.5 → 2.0.0-rc77.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,7 @@
8
8
 
9
9
  public static class StringExtensions
10
10
  {
11
- private static ThreadLocal<StringBuilder> StringBuilderCache = new(
12
- () => new StringBuilder()
11
+ private static ThreadLocal<StringBuilder> StringBuilderCache = new(() => new StringBuilder()
13
12
  );
14
13
 
15
14
  private static readonly HashSet<char> PascalCaseSeparators = new()
@@ -80,6 +80,10 @@
80
80
  foreach (string guid in guids)
81
81
  {
82
82
  string path = AssetDatabase.GUIDToAssetPath(guid);
83
+ if (!path.StartsWith("Assets", StringComparison.OrdinalIgnoreCase))
84
+ {
85
+ continue;
86
+ }
83
87
  Object asset = AssetDatabase.LoadMainAssetAtPath(path);
84
88
  if (asset == null)
85
89
  {
@@ -360,7 +360,6 @@
360
360
  /// If false, decorations with the same tag (compared OrdinalIgnoreCase) will cause the registration to fail.
361
361
  /// </param>
362
362
  /// <returns>True if the decoration was added, false if the decoration was not added.</returns>
363
-
364
363
  public bool AddDecoration(
365
364
  Func<string, bool> predicate,
366
365
  Func<string, object, string> format,