From f879a344e7822012eca8cccba371f3d7643e631e Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 21 Sep 2012 16:05:17 +0200 Subject: [PATCH] fix for no depth limit default value --- source/net/yacy/crawler/data/CrawlProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/crawler/data/CrawlProfile.java b/source/net/yacy/crawler/data/CrawlProfile.java index be980711e..10b37c751 100644 --- a/source/net/yacy/crawler/data/CrawlProfile.java +++ b/source/net/yacy/crawler/data/CrawlProfile.java @@ -366,7 +366,7 @@ public class CrawlProfile extends ConcurrentHashMap implements M if (this.crawlernodepthlimitmatch == null) { final String r = get(CRAWLER_URL_NODEPTHLIMITMATCH); try { - this.crawlernodepthlimitmatch = (r == null || r.equals(CrawlProfile.MATCH_ALL_STRING)) ? CrawlProfile.MATCH_ALL_PATTERN : Pattern.compile(r); + this.crawlernodepthlimitmatch = (r == null || r.equals(CrawlProfile.MATCH_NEVER_STRING)) ? CrawlProfile.MATCH_NEVER_PATTERN : Pattern.compile(r); } catch (PatternSyntaxException e) { this.crawlernodepthlimitmatch = CrawlProfile.MATCH_NEVER_PATTERN; } } return this.crawlernodepthlimitmatch;