summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-02-25 11:10:22 +0100
committerAleksander Machniak <alec@alec.pl>2013-02-25 11:11:23 +0100
commitccc2e358f2cb3ea831f68b7c8df9192b3b675c17 (patch)
tree2c856a98304d48d2f527af4c0f8b9490dd734362 /program/lib
parentf5533cf722cc1b0c13f815074beb0f91bb5da499 (diff)
Fix plain text spellchecker icorrect highlighting in non-ASCII text (#1488973)
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_spellchecker.php2
1 files changed, 1 insertions, 1 deletions
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;