Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2204 : revert erroneous commit

Sebastian Nagelbf65d2f0eb0e
diff --git a/conf/regex-normalize.xml.template b/conf/regex-normalize.xml.template
index 209ac8634..ec60c1081 100644
--- a/conf/regex-normalize.xml.template
+++ b/conf/regex-normalize.xml.template
@@ -39,12 +39,11 @@
<substitution>/$3</substitution>
</regex> -->
-<!-- removes interpage href anchors such as site.com#location
- (also done by urlnormalizer-basic
+<!-- removes interpage href anchors such as site.com#location -->
<regex>
- <pattern>#.*</pattern>
+ <pattern>#.*?(\?|&amp;|$)</pattern>
<substitution>$1</substitution>
-</regex> -->
+</regex>
<!-- cleans ?&amp;var=value into ?var=value -->
<regex>