Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) More tolerant robots parser - converting tabs to spaces - cutting of '*' in the disallow section
theli9649d0817196
diff --git a/source/de/anomic/data/robotsParser.java b/source/de/anomic/data/robotsParser.javaindex aeaa2ab53..e1cf2486b 100644--- a/source/de/anomic/data/robotsParser.java+++ b/source/de/anomic/data/robotsParser.java@@ -121,9 +121,12 @@ public final class robotsParser{// cutting off comments at the line endpos = line.indexOf("#");if (pos != -1) {- line = line.substring(0,pos);+ line = line.substring(0,pos).trim();}+ // replacing all tabs with spaces+ line = line.replaceAll("\t"," ");+// getting out the robots namepos = line.indexOf(" ");if (pos != -1) {@@ -138,9 +141,18 @@ public final class robotsParser{// cutting off comments at the line endpos = line.indexOf("#");if (pos != -1) {- line = line.substring(0,pos);+ line = line.substring(0,pos).trim();+ }++ // cutting of tailing *+ if (line.endsWith("*")) {+ line = line.substring(0,line.length()-1);}+ // replacing all tabs with spaces+ line = line.replaceAll("\t"," ");++ // getting the pathpos = line.indexOf(" ");if (pos != -1) {// getting the path