Skip to content

Commit

Permalink
Merge pull request #121 from ashkanparsa/patch-1
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
wolfgarbe authored Feb 10, 2022
2 parents 6fbfb4b + cf56248 commit 0060a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SymSpell/SymSpell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ public List<SuggestItem> LookupCompound(string input, int editDistanceMax)
topResult = results[0].term;
//v6.7
//retain/preserve upper case
if (Char.IsUpper(part[0]))
if (part.Any() && Char.IsUpper(part[0]))
{
char[] a = topResult.ToCharArray();
a[0] = char.ToUpper(topResult[0]);
Expand Down

0 comments on commit 0060a09

Please sign in to comment.