remove RegexOptions.Compiled from camel_to_title_case fn
This commit is contained in:
1 parent
ea64fad8f1
commit
a2b215091a
1 file changed
+2
-3
@@ -5,8 +5,7 @@ namespace mbts.ui.utilities
|
||||
public static class DisplayNameHelper
|
||||
{
|
||||
// Adds spaces to CamelCase => "Camel Case"
|
||||
public static string camel_to_title_case(string name) {
|
||||
return Regex.Replace(name, @"(?=\p{Lu}\p{Ll})|(?<=\p{Ll})(?=\p{Lu})", " ", RegexOptions.Compiled).Trim();
|
||||
}
|
||||
public static string camel_to_title_case(string name) =>
|
||||
Regex.Replace(name, @"(?=\p{Lu}\p{Ll})|(?<=\p{Ll})(?=\p{Lu})", " ").Trim();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user