From 62f5c2a76f9b481e89f3bfd3ed90510f67c946ec Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 25 Jan 2018 08:19:29 -0800 Subject: [PATCH] Fix spellcheck word matching for non-ASCII characters #564 --- app/src/components/composer-editor/spellcheck-plugins.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/composer-editor/spellcheck-plugins.jsx b/app/src/components/composer-editor/spellcheck-plugins.jsx index 0eedc5ee8..50f1eba74 100644 --- a/app/src/components/composer-editor/spellcheck-plugins.jsx +++ b/app/src/components/composer-editor/spellcheck-plugins.jsx @@ -64,7 +64,7 @@ function renderMark(props) { function decorationsForNode(node, value) { const { key, text } = node; - const regexp = /[\w]+/g; + const regexp = /([^\s.,¿?!:()[\]+><"“”|*&^%$#@—-]+)/g; const decorations = []; let match = null;