There is an issue with the regex that is used to identify the misspelled words. The regex is written in a way that every word should have a leading and trailing space. Hence, It is unable to identify misspelled first word(as it will not have a space before it) and last word with out space or period.
There is an issue with the regex that is used to identify the misspelled words. The regex is written in a way that every word should have a leading and trailing space. Hence, It is unable to identify misspelled first word(as it will not have a space before it) and last word with out space or period.