LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/DunGen/StringUtil.cs

15 lines
288 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
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();
}
}
}