File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,17 +57,17 @@ Wraith.prototype.config = function(config) {
57
57
self . urls = fs . readFileSync ( config . spider , 'utf8' ) . split ( '\n' ) ;
58
58
}
59
59
60
+ for ( var domain in config . domains ) {
61
+ self . domains . push ( config . domains [ domain ] . replace ( / \/ + $ / , '' ) ) ;
62
+ self . domainLabels . push ( config . domains [ domain ] . replace ( / .* ?: \/ \/ / g, '' ) ) ;
63
+ }
64
+
60
65
if ( self . urls . length === 0 || self . domains . length === 0 ) {
61
66
log . error ( 'No url(s) provided' ) ;
62
67
process . exit ( 1 ) ;
63
68
return false ;
64
69
}
65
70
66
- for ( var domain in config . domains ) {
67
- self . domains . push ( config . domains [ domain ] . replace ( / \/ + $ / , '' ) ) ;
68
- self . domainLabels . push ( config . domains [ domain ] . replace ( / .* ?: \/ \/ / g, '' ) ) ;
69
- }
70
-
71
71
for ( var url in self . urls ) {
72
72
var folder = path . join ( self . outputFolder , self . urls [ url ] . substring ( 1 ) . replace ( / \/ + $ / , '' ) + '/' ) ;
73
73
self . dirs . push ( folder ) ;
You can’t perform that action at this time.
0 commit comments