projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
19b30b5
)
tidy up listdups so regexes now work again
author
minima
<minima>
Wed, 23 Aug 2000 22:00:02 +0000
(22:00 +0000)
committer
minima
<minima>
Wed, 23 Aug 2000 22:00:02 +0000
(22:00 +0000)
perl/DXDupe.pm
patch
|
blob
|
history
perl/DXProt.pm
patch
|
blob
|
history
diff --git
a/perl/DXDupe.pm
b/perl/DXDupe.pm
index 2ab0ca8cee3c81c15e677dafa8d855511186bb10..cd4272c787530d24473dc821fcd7b724596762c9 100644
(file)
--- a/
perl/DXDupe.pm
+++ b/
perl/DXDupe.pm
@@
-73,6
+73,7
@@
sub listdups
my $regex = shift;
$regex =~ s/[\^\$\@\%]//g;
+ $regex = ".*$regex" if $regex;
$regex = "^$let" . $regex;
my @out;
for (sort { $d{$a} <=> $d{$b} } grep { m{$regex}i } keys %d) {
diff --git
a/perl/DXProt.pm
b/perl/DXProt.pm
index 6b11228b58ac2b5849df2e7611401e8959012065..4f02d5193275b866d9577f3e31bc716d5420e1e8 100644
(file)
--- a/
perl/DXProt.pm
+++ b/
perl/DXProt.pm
@@
-422,7
+422,7
@@
sub normal
# announce duplicate checking
$field[3] =~ s/^\s+//; # remove leading blanks
if (AnnTalk::dup($field[1], $field[2], $field[3])) {
- dbg('chan', "Duplicate Announce ignored
\n
");
+ dbg('chan', "Duplicate Announce ignored");
return;
}