[lintian] 01/01: L::Check: Add missing /g modifier to regex
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit de4594cd6570b74612f75efe27a65f8a310afbcc
Author: Niels Thykier <niels@thykier.net>
Date: Wed Jun 17 23:38:58 2015 +0200
L::Check: Add missing /g modifier to regex
Signed-off-by: Niels Thykier <niels@thykier.net>
---
lib/Lintian/Check.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Lintian/Check.pm b/lib/Lintian/Check.pm
index adca85b..942a792 100644
--- a/lib/Lintian/Check.pm
+++ b/lib/Lintian/Check.pm
@@ -292,7 +292,7 @@ sub check_spelling {
$text =~ s/[()\[\]]//g;
$text =~ s/(\w-)\s*\n\s*/$1/;
$text =~ tr/\r\n \t/ /s;
- $text =~ s/\s++/ /;
+ $text =~ s/\s++/ /g;
strip($text);
for my $word (split(/\s+/, $text)) {
@@ -375,7 +375,7 @@ sub check_spelling_picky {
# the words.
$text =~ s/\[.+?\]//sg;
$text =~ tr/\r\n \t/ /s;
- $text =~ s/\s++/ /;
+ $text =~ s/\s++/ /g;
strip($text);
for my $word (split(/\s+/, $text)) {
$word =~ s/^\(|[).,?!:;]+$//g;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: