Include comma as a word boundary

This commit is contained in:
Kevin Sawicki
2013-04-25 09:18:43 -07:00
parent 2302baa4f3
commit 59c02c90da

View File

@@ -2,7 +2,7 @@ SpellChecker = require 'spellchecker'
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')