mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Include comma as a word boundary
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user