mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
fix for no depth limit default value
This commit is contained in:
parent
fa7f6f0be8
commit
f879a344e7
|
@ -366,7 +366,7 @@ public class CrawlProfile extends ConcurrentHashMap<String, String> 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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user