Skip to content

Commit

Permalink
Update WordHelper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Jan 12, 2023
1 parent cfe0d0d commit 4818fb6
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/Skylark/Helper/Word/WordHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ internal class WordHelper
/// <returns></returns>
public static string[] GetSplit(string List)
{
if (List.Length > MI.TextLength)
{
List = MWM.List;
}

return List.Split(MI.SplitSpace, ME.SplitOption);
return (List.Length > MI.TextLength ? MWM.List : List).Split(MI.SplitSpace, ME.SplitOption);
}

/// <summary>
Expand All @@ -33,12 +28,7 @@ public static string[] GetSplit(string List)
/// <returns></returns>
public static string[] GetSplits(string List)
{
if (List.Length > MI.TextLength)
{
List = MWM.List;
}

return List.Split(MI.SplitSpaceNewLine, ME.SplitOption);
return (List.Length > MI.TextLength ? MWM.List : List).Split(MI.SplitSpaceNewLine, ME.SplitOption);
}

/// <summary>
Expand Down

0 comments on commit 4818fb6

Please sign in to comment.