Skip to content

Commit 813621a

Browse files
committed
better parsing for xml files.
1 parent a7c2895 commit 813621a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crawler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ var crawlerApp = {
149149

150150
// Only parse XML documents and ignore all other links
151151
conditionID = crawler.addFetchCondition(function(parsedURL) {
152-
return parsedURL.path.match(/\.xml$/i);
152+
return parsedURL.path.match(/\.xml/i);
153153
});
154154

155155
crawler.on("complete", function(err, response) {

0 commit comments

Comments
 (0)