mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add [] as word boundaries
This is a common boundary used in markdown link text
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user