mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updated StringExtension.cs - CamelFriendly method
Made it more obvious how CamelFriendly was choosing to enter spaces in a string Done on behalf of Radio Systems Corporation
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Orchard.Utility.Extensions {
|
||||
|
||||
for (int i = camel.Length-1; i>0; i--) {
|
||||
var current = sb[i];
|
||||
if('A' <= current && current <= 'Z') {
|
||||
if(char.IsUpper(current)) {
|
||||
sb.Insert(i, ' ');
|
||||
}
|
||||
}
|
||||
@@ -357,4 +357,4 @@ namespace Orchard.Utility.Extensions {
|
||||
return Encoding.UTF8.GetString(Convert.FromBase64String(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user