[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.2.6-71-gd31914a



The following commit has been merged in the master branch:
commit d31914a421b8f3c0f91e77ecd0018e48de97e881
Author: Russ Allbery <rra@debian.org>
Date:   Sun Mar 8 18:59:21 2009 -0700

    Keep hyphens in words when doing spell checking

diff --git a/lib/Spelling.pm b/lib/Spelling.pm
index 8c4cdbf..7b64d98 100644
--- a/lib/Spelling.pm
+++ b/lib/Spelling.pm
@@ -430,7 +430,7 @@ sub spelling_check {
     return unless $text;
 
     $text = lc $text;
-    $text =~ s/[.,;:?!()[\]-]//g;
+    $text =~ s/[.,;:?!()[\]]//g;
 
     for my $word (split(/\s+/, $text)) {
         if (exists $CORRECTIONS{$word}) {

-- 
Debian package checker


Reply to: