File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Microsoft.OpenApi/Extensions Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,11 @@ public static T GetEnumFromDisplayName<T>(this string displayName)
45
45
/// <param name="input">String containing the words to be capitalized, delimited by the '-' character.</param>
46
46
/// <returns>String value with each word capitalized and concatenated.</returns>
47
47
public static string ToPascalCase ( this string input )
48
- => string . IsNullOrEmpty ( input ) ? input : string . Join ( null , input . Split ( new char [ ] { '-' } , StringSplitOptions . RemoveEmptyEntries )
49
- . Select ( s => ToFirstCharacterUpperCase ( s ) ) ) ;
48
+ => string . IsNullOrEmpty ( input ) ? input : string . Join (
49
+ null , input . Split (
50
+ new char [ ] { '-' } , StringSplitOptions . RemoveEmptyEntries )
51
+ . Select ( ToFirstCharacterUpperCase ) ) ;
52
+
50
53
/// <summary>
51
54
/// Capitalizes the first letter of an input string.
52
55
/// </summary>
You can’t perform that action at this time.
0 commit comments