projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c977c78
)
put back the not word cahracter filter
author
minima
<minima>
Sun, 27 Feb 2005 15:51:53 +0000
(15:51 +0000)
committer
minima
<minima>
Sun, 27 Feb 2005 15:51:53 +0000
(15:51 +0000)
perl/Spot.pm
patch
|
blob
|
history
diff --git
a/perl/Spot.pm
b/perl/Spot.pm
index 995bad539e4bb9450134a515a4aa642a21c014d9..0ab1a5166f29996ab8f3217f02413f88a481325b 100644
(file)
--- a/
perl/Spot.pm
+++ b/
perl/Spot.pm
@@
-338,6
+338,7
@@
sub dup
$text =~ s/\b\w{1,4}$// if $prefix && Prefix::extract($prefix);
$text = substr($text, 0, $duplth) if length $text > $duplth;
$text = pack("C*", map {$_ & 127} unpack("C*", $text));
+ $text =~ s/[^\w]//g;
my $ldupkey = "X$freq|$call|$by|$text";
my $t = DXDupe::find($ldupkey);
return 1 if $t && $t - $main::systime > 0;