Closed chrisK00 closed 3 years ago
Auger Today at 10:15 AM https://stackoverflow.com/questions/444798/case-insensitive-containsstring Stack Overflow Case insensitive 'Contains(string)' Is there a way to make the following return true?
string title = "ASTRINGTOTEST"; title.Contains("string"); There doesn't seem to be an overload that allows me to set the case sensitivity.. Curre...
Looks like I'll need an extension method public static class Extensions { public static bool CaseInsensitiveContains(this string text, string value, StringComparison stringComparison = StringComparison.CurrentCultureIgnoreCase) { return text.IndexOf(value, stringComparison) >= 0; } }
ChrisK Today at 10:17 AM what about this? "Test".Contains("test", System.StringComparison.CurrentCultureIgnoreCase);
Describe the bug When a new project channel gets created, the channel is spawned alone anywhere on the server without a category. The problem is that when it looks if the category exists, the search needs to be case insensitive
To Reproduce Steps to reproduce the behavior:
Expected behavior The channel is spawned inside the [projects] category
Additional information The problem is coming from the TransitionToActiveProject method - .contains