From 9f037384b69c979ea2c9b9e8a3dc01f6e70595e7 Mon Sep 17 00:00:00 2001 From: Mick O'Brien Date: Mon, 23 Mar 2015 16:14:38 +0000 Subject: [PATCH] Update word regex for spellcheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds Latin Extended-A characters to word regex to prevent splitting words half way through on characters like ąęćółżźńś. --- .../directives/aceEditor/spell-check/SpellCheckManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee index 7af794e867..868f33ca10 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee @@ -171,7 +171,7 @@ define [ positions = [] for line, row in lines if !linesToProcess? or linesToProcess[row] - wordRegex = /\\?['a-zA-Z\u00C0-\u00FF]+/g + wordRegex = /\\?['a-zA-Z\u00C0-\u017F]+/g while (result = wordRegex.exec(line)) word = result[0] if word[0] == "'"