Skip to content

Commit

Permalink
Fix Error GetBefore() (#2121)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 authored Sep 30, 2023
1 parent 3a65ada commit b11da3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Exiled.API/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static string RemoveBracketsOnEndOfName(this string name)
public static string GetBefore(this string input, char symbol)
{
int start = input.IndexOf(symbol);
if (start != 0)
if (start > 0)
input = input.Substring(0, start);

return input;
Expand Down

0 comments on commit b11da3a

Please sign in to comment.