[lintian] 01/01: c/cruft.pm: Use a char-class rather than union in regex
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit d07f0cfac674e1b226a702f50bc001958846c42a
Author: Niels Thykier <niels@thykier.net>
Date: Sat Apr 26 11:54:53 2014 +0200
c/cruft.pm: Use a char-class rather than union in regex
Character-classes are generally simplier and faster to match than a
union of single characters.
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/cruft.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/cruft.pm b/checks/cruft.pm
index f9ededb..d5952f9 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -1022,7 +1022,7 @@ sub _clean_block {
$text =~ s/\@c(?:omment)?\s+/ /gxms; # Tex info comment
- $text =~ s/\@(?:b|i|r|t){
+ $text =~ s/\@[birt]{
/ /gxms
; # Tex info bold,italic, roman, fixed width
$text =~ s/\@sansserif{/ /gxms; # Tex info sans serif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: