From ccc2e358f2cb3ea831f68b7c8df9192b3b675c17 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 25 Feb 2013 11:10:22 +0100 Subject: Fix plain text spellchecker icorrect highlighting in non-ASCII text (#1488973) --- program/lib/Roundcube/rcube_spellchecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/lib/Roundcube/rcube_spellchecker.php b/program/lib/Roundcube/rcube_spellchecker.php index d4f23d18a..5db9cc8c1 100644 --- a/program/lib/Roundcube/rcube_spellchecker.php +++ b/program/lib/Roundcube/rcube_spellchecker.php @@ -31,7 +31,7 @@ class rcube_spellchecker private $lang; private $rc; private $error; - private $separator = '/[\s\r\n\t\(\)\/\[\]{}<>\\"]+|[:;?!,\.]([^\w]|$)/'; + private $separator = '/[\s\r\n\t\(\)\/\[\]{}<>\\"]+|[:;?!,\.](?=\W|$)/'; private $options = array(); private $dict; private $have_dict; -- cgit v1.2.3