Skip to content

Commit b0db0b3

Browse files
handle static text value better in FriendlyName method
1 parent efe3cfb commit b0db0b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Code/ValueSystem/Value.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections;
22
using LabApi.Features.Wrappers;
33
using SER.Code.Exceptions;
4+
using SER.Code.Extensions;
45
using SER.Code.ScriptSystem;
56

67
namespace SER.Code.ValueSystem;
@@ -41,7 +42,7 @@ public static Value Parse(object obj, Script? script)
4142
};
4243
}
4344

44-
public static string FriendlyName(Type type) => type.Name.Replace("Value", "").ToLower();
45+
public static string FriendlyName(Type type) => type.Name.Replace("Value", "").Spaceify().ToLower();
4546
public string FriendlyName() => FriendlyName(GetType());
4647

4748
public override string ToString()

0 commit comments

Comments
 (0)