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

[SCM] Debian package checker branch, master, updated. 2.4.3-199-g7a2cf11



The following commit has been merged in the master branch:
commit bdf1f712dd7a5588f4fbdbb8284325400a3e5ef6
Author: Niels Thykier <niels@thykier.net>
Date:   Fri Jan 28 01:36:28 2011 +0100

    Corrected regex in checks/description

diff --git a/checks/description b/checks/description
index 8d84ef2..cebd96f 100644
--- a/checks/description
+++ b/checks/description
@@ -134,7 +134,7 @@ foreach (split /\n/, $description) {
     # We don't want to think ", ," or "a, a" is a duplicated word, so require
     # that a word start and end with a word character.
     my $stripped = $_;
-    $stripped =~ s,[\"\'](.*?)(\1),,g;
+    $stripped =~ s,(["'])(.*?)(\1),,g;
     while ($stripped =~
 	   m%(?:\s|^)((\w(?:\S*\w)?)(\s+(\2))+)(?:[\).,?!:;\s]|\z)%i) {
 	my $words = $1;

-- 
Debian package checker


Reply to: