LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/DunGen/StringUtil.cs
2023-12-22 18:30:10 -05:00

14 lines
288 B
C#

using System.Text.RegularExpressions;
namespace DunGen
{
public static class StringUtil
{
private static Regex capitalLetterPattern = new Regex("([A-Z])");
public static string SplitCamelCase(string input)
{
return capitalLetterPattern.Replace(input, " $1").Trim();
}
}
}