Add [] as word boundaries

This is a common boundary used in markdown link text
This commit is contained in:
Kevin Sawicki 2013-02-27 11:08:29 -08:00
parent 47021b8d3b
commit 23c3b18cf4

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')