Fixes U4-3314 Doctype property alias doesn't auto generate camelcase but does pascalcase instead

This commit is contained in:
Tim Geyssens
2013-11-04 15:00:13 +01:00
parent 102bf79320
commit 4895b5a2a8
6 changed files with 96 additions and 3 deletions

View File

@@ -952,6 +952,16 @@ namespace Umbraco.Core
return ShortStringHelper.CleanStringForSafeAlias(alias);
}
/// <summary>
/// Cleans a string to produce a string that can safely be used in an alias.
/// </summary>
/// <param name="alias">The text to filter.</param>
/// <returns>The safe alias.</returns>
public static string ToSafeCamelAlias(this string alias)
{
return ShortStringHelper.CleanStringForSafeCamelAlias(alias);
}
/// <summary>
/// Cleans a string, in the context of a specified culture, to produce a string that can safely be used in an alias.
/// </summary>