mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
Add [] as word boundaries
This is a common boundary used in markdown link text
This commit is contained in:
parent
47021b8d3b
commit
23c3b18cf4
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user