Skip to content

Commit

Permalink
Fix spaced
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Aug 31, 2024
1 parent 0b73989 commit e329943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Winch/Util/WinchExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ where baseType.IsAssignableFrom(type)
/// Puts spaces between capitalized words within a string. Accounts for acronyms like VR.
/// </summary>
/// <param name="s">The string to search for a match.</param>
public static string Spaced(this string s) => Regex.Replace(s, @"(\p{Ll})(\P{Ll})", "$1 $2");
public static string Spaced(this string s) => Regex.Replace(s, @"(\p{Ll})(\P{Ll})", "$1 $2").Replace(" ", " ");

/// <summary>
/// Returns null if a string is empty / whitespace, otherwise just returns back the string
Expand Down

0 comments on commit e329943

Please sign in to comment.