Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
regular expression shortened
borg-0300106cd29981cf
diff --git a/source/de/anomic/htmlFilter/htmlFilterContentScraper.java b/source/de/anomic/htmlFilter/htmlFilterContentScraper.javaindex 4e118eb6c..ffd66871e 100644--- a/source/de/anomic/htmlFilter/htmlFilterContentScraper.java+++ b/source/de/anomic/htmlFilter/htmlFilterContentScraper.java@@ -163,9 +163,9 @@ public class htmlFilterContentScraper extends htmlFilterAbstractScraper implemenString path = url.getFile();// (this is different from previous normal forms where a '/' must not appear in root paths; here it must appear. Makes everything easier.)- if ((path.length() == 0) || (path.charAt(0) != '/')) path = "/" + path;+ if (path.length() == 0 || path.charAt(0) != '/') path = "/" + path;- Pattern pathPattern = Pattern.compile("(/[^/\\.]+/)(?<!/[.]{2}/)[.]{2}(?=/)|/\\.(?=/)|/(?=/)");+ Pattern pathPattern = Pattern.compile("(/[^/\\.]+/)[.]{2}(?=/)|/\\.(?=/)|/(?=/)");Matcher matcher = pathPattern.matcher(path);while (matcher.find()) {path = matcher.replaceAll("");