Skip to content

Commit

Permalink
+ renaming & validation correction
Browse files Browse the repository at this point in the history
  • Loading branch information
NicklausBrain committed Nov 30, 2024
1 parent 58939b1 commit 88ad6df
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion My1kWordsEe/Models/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static bool ValidateSentence(this string sentence)
}

var areWordsValid = sentence
.Split(new char[] { ' ', ',', '.', '?', '!', '-' }, StringSplitOptions.RemoveEmptyEntries)
.Split(new char[] { ' ', ',', '.', '?', '!', '-', '\'' }, StringSplitOptions.RemoveEmptyEntries)
.All(w => w.ValidateWord());

return areWordsValid;
Expand Down

0 comments on commit 88ad6df

Please sign in to comment.