We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d3d712 commit 2f3b6fbCopy full SHA for 2f3b6fb
RuntimeUnityEditor/Utils/Extensions.cs
@@ -18,6 +18,8 @@ public static class Extensions
18
{
19
public static bool Contains(this string s, string searchText, StringComparison sc)
20
21
+ if (string.IsNullOrEmpty(s) || string.IsNullOrEmpty(searchText))
22
+ return false;
23
return s.IndexOf(searchText, sc) >= 0;
24
}
25
0 commit comments