projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
take out the reverse lookup
[spider.git]
/
perl
/
Prefix.pm
diff --git
a/perl/Prefix.pm
b/perl/Prefix.pm
index d70d921b404e31dc795860610984a588da9ee586..e1dd5e5adc48b83965e6c9dfe84077b79c7f3af2 100644
(file)
--- a/
perl/Prefix.pm
+++ b/
perl/Prefix.pm
@@
-163,9
+163,9
@@
sub extract
$p = $parts[0];
shift @parts if $p =~ /^(WEB|NET)$/o;
$p = $parts[$#parts];
$p = $parts[0];
shift @parts if $p =~ /^(WEB|NET)$/o;
$p = $parts[$#parts];
- pop @parts if $p =~ /^(\d+|[
J
PABM]|AM|MM|BCN|JOTA|SIX|WEB|NET|Q\w+)$/o;
+ pop @parts if $p =~ /^(\d+|[PABM]|AM|MM|BCN|JOTA|SIX|WEB|NET|Q\w+)$/o;
$p = $parts[$#parts];
$p = $parts[$#parts];
- pop @parts if $p =~ /^(\d+|[
J
PABM]|AM|MM|BCN|JOTA|SIX|WEB|NET|Q\w+)$/o;
+ pop @parts if $p =~ /^(\d+|[PABM]|AM|MM|BCN|JOTA|SIX|WEB|NET|Q\w+)$/o;
# can we resolve them by direct lookup
foreach $p (@parts) {
# can we resolve them by direct lookup
foreach $p (@parts) {
@@
-228,6
+228,15
@@
L1: for ($n = 0; $n < @parts; $n++) {
$part .= '*' unless $part eq '*' || $part eq $try;
dbg("Compound prefix: $try $part" );
}
$part .= '*' unless $part eq '*' || $part eq $try;
dbg("Compound prefix: $try $part" );
}
+# if (@try == 0) {
+# $try = join('/', reverse @parts);
+# @try = get($try);
+# if (isdbg('prefix')) {
+# my $part = $try[0] || "*";
+# $part .= '*' unless $part eq '*' || $part eq $try;
+# dbg("Compound prefix: $try $part" );
+# }
+# }
if (@try && $try eq $try[0]) {
push @out, @try;
} else {
if (@try && $try eq $try[0]) {
push @out, @try;
} else {