diff --git a/src/packages/spell-check/lib/spell-check-handler.coffee b/src/packages/spell-check/lib/spell-check-handler.coffee index 9690e78c9..8040f4991 100644 --- a/src/packages/spell-check/lib/spell-check-handler.coffee +++ b/src/packages/spell-check/lib/spell-check-handler.coffee @@ -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')