mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +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--) {
|
for (int i = camel.Length-1; i>0; i--) {
|
||||||
var current = sb[i];
|
var current = sb[i];
|
||||||
if('A' <= current && current <= 'Z') {
|
if(char.IsUpper(current)) {
|
||||||
sb.Insert(i, ' ');
|
sb.Insert(i, ' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user