Include apostrophe in word regex

This commit is contained in:
Kevin Sawicki 2013-02-26 19:15:18 -08:00
parent c0d4f70467
commit 0398e160ae

View File

@ -1,6 +1,6 @@
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|\s)([a-zA-Z]+)(?=\s|\.|$)/g
wordRegex = /(?:^|\s)([a-zA-Z']+)(?=\s|\.|$)/g
row = 0
misspellings = []
for line in text.split('\n')