Changeset 3047 in subversion
- Timestamp:
- Oct 19, 2009 3:27:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/spell_pspell.inc
r2788 r3047 44 44 45 45 // tokenize 46 $words = preg_split('/[ !"#$%&()*+\\, -.\/\n:;<=>?@\[\]^_{|}]+/', $text, NULL, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE );46 $words = preg_split('/[ !"#$%&()*+\\,\/\n:;<=>?@\[\]^_{|}-]+|\.[^\w]/', $text, NULL, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE ); 47 47 48 48 // init spellchecker … … 57 57 $pos = $w[1] - $diff; 58 58 $len = mb_strlen($word); 59 if ($word && $plink && !pspell_check($plink, $word)) { 59 if ($word && $plink && preg_match('/[^0-9\.]/', $word) 60 && !pspell_check($plink, $word)) { 60 61 $suggestions = pspell_suggest($plink, $word); 61 62 if (sizeof($suggestions)>10)
Note: See TracChangeset
for help on using the changeset viewer.
