LunarInfantry/Assets/LeaderboardCreator/Scripts/Utils/ExtensionMethods.cs
2026-01-02 01:31:54 -08:00

10 lines
No EOL
278 B
C#
Executable file

using System.Text.RegularExpressions;
namespace Dan
{
public static class ExtensionMethods
{
public static string SplitByUppercase(this string str) =>
Regex.Replace(str, @"(\B[A-Z]+?(?=[A-Z][^A-Z])|\B[A-Z]+?(?=[^A-Z]))", " $1");
}
}