MarisaMagicalStudy/Assets/Plugins/LeaderboardCreator/Scripts/Utils/ExtensionMethods.cs
2026-01-28 01:22:27 -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");
}
}